I've set up jest as a pre-commit hook to make sure to run the tests I have before commit locally. I'd like to keep my coverage up so it would be neat if jest would not return exit code 0 when coverage is less than 100%.
This should probably be behind a command line flag for people that actually want this behavior.
:+1: I'm also interested in this feature. It would also be useful to be able to specify arbitrary threshold values like karma-threshold-reporter:
thresholdReporter: {
statements: 90,
branches: 60,
functions: 85,
lines: 90
}
Agreed! I haven't heard from @koddsson since he initially started his pull request.
Sorry! I've been super busy at work but I definitely wanna try to finish off #556 soon. I'm hoping I can get to it this week or at the weekend :pray:
Has this wonderful feature been finished?
Really want to see features like this:
thresholdReporter: {
statements: 90,
branches: 60,
functions: 85,
lines: 90
}
I'm happy to accept pull requests for this feature!
I agree with @elliottsj
This will be part of the 12.1.0 release sometime this week. Thanks to @bookman25 for implementing this feature!
Most helpful comment
:+1: I'm also interested in this feature. It would also be useful to be able to specify arbitrary threshold values like karma-threshold-reporter: