Skip to content
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

Code Coverage doesn't fail if coverage is 0% #8561

Closed
n8ores opened this issue Jun 13, 2019 · 2 comments · May be fixed by joseroubert08/jest#34 or joseroubert08/jest#76
Closed

Code Coverage doesn't fail if coverage is 0% #8561

n8ores opened this issue Jun 13, 2019 · 2 comments · May be fixed by joseroubert08/jest#34 or joseroubert08/jest#76

Comments

@n8ores
Copy link

n8ores commented Jun 13, 2019

We are instantiating JEST with code coverage. It successfully generates a usage report in the console which shows the coverage as 0%,but it still says PASSED!

Image showing code cover running

JEST configuration is below

"jest": {
"collectCoverage": true,
"coverageDirectory": "../coverage",
"testPathIgnorePatterns": [
"/node_modules/"
],
"verbose": true,
"coverageThreshold": {
"global": {
"branches": 50,
"functions": 50,
"lines": 50,
"statements": 50
}
}
},

@thymikee
Copy link
Collaborator

Please conform to the issue template and provide a downloadable repro

@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
2 participants