-
-
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
Support nested .babelrc files in babel-jest #6617
Comments
It sounds like this is related: #6053 (comment) So maybe PR #6629 isn't the right fix, but then this also means that the orignal |
I can confirm that #6053 (comment) indeed solves my issues and removes the need for |
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. |
🚀 Feature Proposal
Add support for nested .babelrc files in sub-folders
Motivation
When working with monorepos, e.g. through Lerna, it is currently not possible to run Jest from the root level in an easy way if each package / project has different .babelrc files, as is often the case when working with backend and frontend code in one monorepo.
I have therefore written my own version of
babel-jest
calledbabel-jest-nested
that support this feature. I'd like to suggest to include this inbabel-jest
by default:https://github.com/lehni/babel-jest-nested
Example
See the example here:
https://github.com/lehni/babel-jest-nested#example-with-lerna
Pitch
I am not the only one struggling with this problem, but so far there was no easy solution, see here:
lerna/lerna#994 (comment)
https://stackoverflow.com/questions/50511308/jest-projects-configuration-does-not-read-babelrc-and-webpack-config-json-in/51174657#51174657
etc.
The text was updated successfully, but these errors were encountered: