-
-
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
Jest doesn't transpile test file in monorepo. #6835
Comments
I haven't tested, but this seems like #6053 (comment) Could you confirm if that fixes it or not? |
As @SimenB suggested, replacing |
Awesome! Closing then 🙂 |
Thanks, it works for me. |
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. |
🐛 Bug Report
Recently I'm working on migrating my project to monorepo. but after I set up the monorepo, all the tests failed.
The first issue it that the test files in packages will not be transpiled by
babel-jest
. so I will get this error:Click here to see the output log.
After some investigation, and checked out the related issues: #2081, #3202, etc, I found my issue should be caused by
monorepo
.To Reproduce
I create a minimal reproduction repo for that: https://github.com/ulivz/jest-6835
All the detailed output has been included in the repo's readme.
Expected behavior
The test files in
packages
should be transpiledLink to repl or repo (highly encouraged)
https://github.com/ulivz/jest-6835
Run
npx envinfo --preset jest
Paste the results here:
System: OS: macOS High Sierra 10.13.4 CPU: x64 Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz Binaries: Node: 8.11.3 - /usr/local/bin/node Yarn: 1.7.0 - /usr/local/bin/yarn npm: 5.6.0 - /usr/local/bin/npm npmPackages: jest: ^23.0.0 => 23.5.0
The text was updated successfully, but these errors were encountered: