-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Make use of jest v20's default configuration file #1063
Conversation
* we no longer have to pass a `--config` flag to Jest * renames .jestrc json to jest.config.js * jest-enzyme now includes snapshot support by default
}, | ||
projects: ['<rootDir>/packages/*', '<rootDir>/examples/*'], | ||
collectCoverage: false, | ||
collectCoverageFrom: ['packages/**/*.{js,jsx}', '!**/generators/**'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ndelangen Isn't this config redundant if we're setting collectCoverage
to false
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, it's not. The CI now only has to toggle the flag to enable the coverage. and toggling it on is also easy locally.
}, | ||
projects: ['<rootDir>/packages/*', '<rootDir>/examples/*'], | ||
collectCoverage: false, | ||
collectCoverageFrom: ['packages/**/*.{js,jsx}', '!**/generators/**'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, it's not. The CI now only has to toggle the flag to enable the coverage. and toggling it on is also easy locally.
--config
flag to Jest