[next/jest] ensure packages in experimental.transpilePackages get transformed #42964
Closed
1 task done
Labels
Testing
Related to testing with Next.js.
Verify canary release
Provide environment information
What browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
Describe the Bug
Packages that are specified in
experimental.transpilePackages
should also be transformed in a jest environment.Expected Behavior
I would expect that using a jest config created from
next/jest
, my test code would "just work" the same as my application code without further configuration. In particular,transformIgnorePatterns
should be updated to align with thetranspilePackages
config.e.g. if I had this in my next config:
transformIgnorePatterns
would be updated to look like this:Link to reproduction - Issues with a link to complete (but minimal) reproduction code will be addressed faster
https://github.com/BRKalow/next-transpile-packages-jest
To Reproduce
The text was updated successfully, but these errors were encountered: