-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example with React #2
Comments
It seems like a bug of swc/jest. Can you try module.type="commonjs" like shown below? https://swc-project.github.io/docs/configuring-swc.html#common-js |
Hey @kdy1 same error 😓 |
I'll fix it soon |
I found that it works if |
Found the root cause. I also added an example. jest/examples/react/package.json Lines 17 to 37 in 6281cfb
|
Hey @kdy1 thanks for your fast reply. I tried the same config and got this error:
|
You should use Example uses local dependency to check if current version works properly |
ah yes! I'm stupid 😅 sorry about that! |
No problem |
I'm spiking on migrating |
I'm trying to move from
react-scripts
to SWC.The building part is fine with webpack but I'm struggling a bit with jest.
this is the config that I've tried so far in the
package.json
:Any clue how to configure it properly?
The error I get in every test is:
Thank you
The text was updated successfully, but these errors were encountered: