-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
[Bug]: Jest doesn't pick up babel config in monorepo setup when upgrading to Jest 28 #12768
Comments
I think you're just hitting uuidjs/uuid#616, i.e. If you want to transpile it, you need to enable transpilation for |
Posting this here since others in my situation may come looking at this issue. I was having trouble using Jest 28 in a monorepo setting with TypeScript. In my particular case, the project tree looked something like this:
Our test script: I think we maybe had several Jest configs at some point, and so used a folder to clean up the root somewhat. After the changes in #12689, it looks like babel is configured to not look for a config file further up than the folder of the Jest configuration file. In our case, that means When I moved the Jest config to the same directory as our Babel config everything started working just fine:
|
You can also specify |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Version
28.0.2
Steps to reproduce
yarn jest
Expected behavior
I expect it to pass as in jest 27
Actual behavior
Additional context
I assume it has something to do with the babelRoot update, but I cannot figure out what changes I need to make to my setup to make it work.
Environment
The text was updated successfully, but these errors were encountered: