Closed
Description
I've added '@babel/plugin-syntax-top-level-await'
and am passing --harmony-top-level-await
to Node v13.10, but Jest still returns a syntax error:
SyntaxError: await is only valid in async function at Runtime._execModule (../node_modules/jest-runtime/build/index.js:988:58)
Are there plans to support top-level await in tests, perhaps part of #9430?