You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Hi @rmcsharry, My fix is on jest v25.5.4.
I only fixed the case that when test files change, jest will show the coverage of related source code, so this may not be your use case 馃槗
By the way, it seems that this issue closed before I fix it in #9769 , so I'm not sure if the problem is totally gone.
@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.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.
馃悰 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: