We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89bf57f commit d622c15Copy full SHA for d622c15
bin/cli.js
@@ -59,8 +59,8 @@ if (onlyFailures && testNamePattern !== null) {
59
60
// if enabled testcase or testNamePattern or onlyFailures, disable collectCoverage by default
61
const collectCoverage =
62
- Boolean(options.collectCoverage) ||
63
- config.collectCoverage ||
+ (options.collectCoverage === "false" ? false : options.collectCoverage === "true" ? true : null) ??
+ config.collectCoverage ??
64
(testFiles === null && options.testNamePattern === undefined && !onlyFailures);
65
66
const getBoolean = (optionValue, configValue) => {
0 commit comments