-
-
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 v16.0.2 exit code is 0 (success) when coverage threshold is not met #1964
Comments
I've had a look at this and had a go at a possible solution: #1974 |
This will be fixed in #1974. |
Yay, thanks! |
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. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Do you want to request a feature or report a bug?
bug
What is the current behavior?
jest
ends with a 0 exit code when tests pass but coverage does not meet the thresholdIf the current behavior is a bug, please provide the steps to reproduce and if possible a minimal repository on GitHub that we can
npm install
andnpm test
.package.json excerpt:
Running
jest
, I see in red text:But,
echo $?
still returns0
.What is the expected behavior?
The exit code should not be 0.
Run Jest again with
--debug
and provide the full configuration it prints. Please mention your node and npm version and operating system.Node.js 6.9.1
npm 3.10.8
macOS Sierra
The text was updated successfully, but these errors were encountered: