-
Notifications
You must be signed in to change notification settings - Fork 429
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
Custom Jest config #43
Comments
Not yet. |
Looks like this was merged facebook/create-react-app#1830 with CRA 1.0.0 does that get you what you need? |
That only works for a few options. Not all. You'd still need to eject to have full control over Jest config. |
I am also looking for this feature, specifically the ability to overwrite 'transformIgnorePatterns' as it's currently excluding node_modules. transformIgnorePatterns is not one of the four allowable options you can overwrite within CRA 1.0+ |
I won't have any time soon to work on this but it makes sense for this project. Would be ideal if the jest config could be setup like the others i.e. how the override works require.cache[require.resolve(webpackConfig)].exports. |
Yes I think this would solve it. Will test it out. Thanks @Gregoirevda and @timarney! |
You're welcome! I've added a test repo that shows how it is used: https://github.com/Gregoirevda/react-app-rewired-jest-overwrite Adding jest info in package.json will work now. |
The last merge broke my basic jest config in my package.json. Here is the configuration I was using before 1.0.10 and that was working:
Since updating, I get the following error, yet my configuration clearly is using an array. This is causing the issue. The typeof of a variable will never be an array so arrays in the configuration will always be converted to objects. I've submitted a PR to fix this #60 |
Going to close this - can open more specific issues as needed. |
Is it possible to define custom Jest config, not just Webpack?
The text was updated successfully, but these errors were encountered: