You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, thanks for this project!
I'm having an issue I can't seem to fix: all my Jest tests are passing BUT as soon as there is some async in there, it stops working, having a ReferenceError: regeneratorRuntime is not defined.
And when I run it with a Jest configuration (with Babel) there is no issue. Any leads?
Thanks!
edit: I dug into the issue and the case is well documented for Babel, needing to add polyfill and/or regenerator. But having low experience with esbuild, I don't know how the polyfills work, especially with create-react-app-esbuild as a wrapper.
The text was updated successfully, but these errors were encountered:
Update: running with the jest script after installing esbuild-jest(by putting esbuild-jest as transform in jest.config.js) seems to be working. Although this is a quick fix, this must mean there is indeed a bug with this craco. Ideally I would only have to run craco test and it should work.
Hi, thanks for this project!
I'm having an issue I can't seem to fix: all my Jest tests are passing BUT as soon as there is some
async
in there, it stops working, having aReferenceError: regeneratorRuntime is not defined
.script in
package.json
:craco test
Here is my
craco.config.js
:Error:
And when I run it with a Jest configuration (with Babel) there is no issue. Any leads?
Thanks!
edit: I dug into the issue and the case is well documented for Babel, needing to add polyfill and/or regenerator. But having low experience with esbuild, I don't know how the polyfills work, especially with
create-react-app-esbuild
as a wrapper.The text was updated successfully, but these errors were encountered: