Do you want to request a feature or report a bug?
feature
What is the current behavior?
Nothing exists as far as I can tell
What is the expected behavior?
To disable coverageThreshold:
jest --coverageThreshold # and not passing anything
Kind of like disabling the collectCoverageFrom
jest --collectCoverageFrom # and not passing a glob
Wanting to do this so when we run jest --watch it wont come up with errors saying it can't find the coverage for the files that are meant to have a coverage threshold.
Please provide your exact Jest configuration and mention your Jest, node, yarn/npm version and operating system.
Jest: v21.1.0
node v6.10.3
yarn v1.0.2
I was able to get around this by creating a jest watch config file that uses the base jest config and just omits collectCoverageFrom, coveragePathIgnorePatterns, coverageThreshold
But think might still be handy to be able to configure at least the global threshold via a --coverageThreshold flag
In other projects, I've seen a --no- prefix negate any/all flags. I followed suit in gitlike-cli, as an example.
I don't think this is super common. You can pass --config '{"coverageThreshold": {}}' or something like that, I think?
If not, you can create a custom watch plugin that allows you to disable it
@SimenB you are so cute.
jest --coverageThreshold '{}' does the trick