-
-
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
coverage summary does not show data for 24.0.0 #7734
Comments
Would you mind setting a repro we can test? |
npm i (to get jest 24.0.0) |
I think 24.0.0 messed up coverage in general. I even commented out some tests to see if it would report the uncovered lines and it still did not report anything. (but works as expected in 23.6.0) |
The problem is with I have reproduced this in the repl below: If you change the pattern to |
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
after upgrading to jest 24.0.0 and running "npm test" on my moderate-sized projects no longer show file-level metrics in the coverage summary and the "All Files" aggregates are all 0 (% Stmts, % Branch, % Funcs, %Lines), even though the tests cover the files at 100% for all files. if I simply downgrade to jest 23.6.0 (and change nothing else) then the coverage details show up.
To Reproduce
git clone https://github.com/SamMaxwell/jest-issue-7734.git
npm i
npm test
notice that the coverage summary is wrong
npm uninstall jest
npm i jest@23.6.0 --save-dev
npm test
notice that the coverage summary shows the correct metrics
Link to repo
git clone https://github.com/SamMaxwell/jest-issue-7734.git
Expected behavior
The console output has a coverage summary that includes file test coverage data and "All Files" aggregates that aren't all 0
The text was updated successfully, but these errors were encountered: