-
-
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
Jest 23 coverage failure for findRelatedTests #6462
Comments
Hey! Can you make a repo that reproduces it? Thanks 😄 |
absolutely, just give me till end of the day, wanted to file this first :) |
Yeah sure, no problem! 😄 |
@stipsan Exit code 0: Exit code 1: |
Hey @bugzpodder, sorry for the overdue response! Thanks for the repro, I looked at it and I think I understand what you’re saying. Since I’ll work on a fix this week and ping you back 😄 |
@bugzpodder I finally got around to create a fix, checkout #6736 for details 🙂 |
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. |
Jest 23 introduced --findRelatedTests --coverage working together.
I think it doesn't work in an edge case, where if I run
jest --coverage --findRelatedtests src/abc.spec.js
abc.spec.js itself doesn't contribute to coverage count, hence coverage is 0 and the test fails.
jest --coverage --findRelatedtests src/abc.js src/abc.spec.js
This works as expected.
@stipsan
The text was updated successfully, but these errors were encountered: