-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
setup{Files,FilesAfterEnv} included in coverage report #7761
Comments
I guess it could be argued that |
I think they, like test files, should by default be ignored by coverage. PR welcome 🙂 |
I’d love to tackle this if you dont mind 🤗 |
Go for it! 🙂 |
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
setupFiles
andsetupFilesAfterEnv
are included in coverage report.global{Setup,Teardown}
are not included as expected.I don't think this is expected, but if it is please close this issue. I'll just add the necessary files to
coveragePathIgnorePatterns
.To Reproduce
Enable
setupFiles
andsetupFilesAfterEnv
and run coverage report.Expected behavior
setupFiles
andsetupFilesAfterEnv
are not shown in coverage report.Link to repl or repo (highly encouraged)
chrisblossom/jest-issue-7761
Run
npx envinfo --preset jest
Paste the results here:
The text was updated successfully, but these errors were encountered: