-
Notifications
You must be signed in to change notification settings - Fork 27.2k
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
Add Jest transformer using next-swc #30811
Comments
Is there ETA on this? Since upgrading to Next12 I am having to disable all my tests. |
You can do the following to your // ...
transform: {
"^.+\\.(js|jsx|ts|tsx)$": ["babel-jest", { presets: ["next/babel"] }],
},
// ... This will use the |
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
We have to add a Jest transformer that leverages
next-swc
so that people don't have to opt-out of usingnext-swc
just to transform tests as it generally requires a.babelrc
withnext/babel
in order to compile components correctly.The text was updated successfully, but these errors were encountered: