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

Fix Jest watch mode not working #266

Merged
merged 1 commit into from
Nov 13, 2019
Merged

Fix Jest watch mode not working #266

merged 1 commit into from
Nov 13, 2019

Conversation

digitalcora
Copy link
Contributor

I was on my way to write up a tech-debt Asana ticket for this issue, but wondered if it could be as simple as something being outdated. Turns out, it was! (the specific crash was this one) This only took a few minutes to address.

For ease of access, this also adds a npm run test:jest:watch script. The default mode only runs tests related to files that have changed.

This was a bug that was fixed in a newer version of Jest, so it only
required updating. This also adds a `npm run test:jest:watch` shortcut.

The Jest branch coverage threshold had to be adjusted down as part of
this, since Jest 24.1.0 fixed an issue where test setup files were
included in the code coverage stats. This commit does not change our
"real" code coverage.
@digitalcora
Copy link
Contributor Author

This is the Jest change I mentioned in standup that removed test setup files from the coverage stats: jestjs/jest#7790

@digitalcora digitalcora merged commit f11ea0d into master Nov 13, 2019
@digitalcora digitalcora deleted the cfg-jest-watch branch November 13, 2019 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants