Skip to content
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

Merged
merged 2 commits into from
May 19, 2017

Conversation

aaronmcadam
Copy link
Contributor

  • 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

* 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/**'],
Copy link
Contributor Author

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?

Copy link
Member

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/**'],
Copy link
Member

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.

@ndelangen ndelangen merged commit ca12ca6 into master May 19, 2017
@ndelangen ndelangen deleted the am-update-jest-config branch May 19, 2017 17:52
@shilman shilman added the misc label May 27, 2017
@ndelangen ndelangen added the cleanup Minor cleanup style change that won't show up in release changelog label May 27, 2017
@ndelangen ndelangen changed the title chore(jest): update to v20's default configuration file Make use of jest v20's default configuration file May 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup Minor cleanup style change that won't show up in release changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants