-
-
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
Run jest in --watch --coverage doesn't update coverage info when files change #8491
Comments
I am on Jest v25.27 and I still see this bug. Even if I empty the coverage directory, it still only shows coverage of one file (always the same file!) @chenesan Are you sure this has been fixed, because it seems not... |
Hi @rmcsharry, My fix is on jest v25.5.4. |
@chenesan Thanks for the prompt reply. After I stopped and started the watcher a few times, it started working again and reports coverage correctly. Very odd. Let's hope it does not return. Maybe it was a cache issue. |
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. |
🐛 Bug Report
When files changes in watch mode, coverage info doesn't update.
To Reproduce
Steps to reproduce the behavior:
Run jest --watch --coverage, updates a file, see that no new coverage info gets updated.
Press 'a' to run all tests in watch mode, no coverage info shows up. @stipsan
Expected behavior
Coverage info shows up when I edit a file after starting watch mode, and when I press 'a' to show all tests.
Link to repl or repo (highly encouraged)
facebook/create-react-app#6888
Jest 24.8
The text was updated successfully, but these errors were encountered: