Skip to content

Commit 1fcefee

Browse files
committed
fix
1 parent 35e65d8 commit 1fcefee

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bin/cli.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ const onlyFailures = options.onlyFailures || false;
4444

4545
// if enabled testcase or testNamePattern or onlyFailures, disable collectCoverage by default
4646
const collectCoverage =
47-
Boolean(options.collectCoverage) || config.collectCoverage || (!options.testcase && !options.testNamePattern && !onlyFailures);
47+
Boolean(options.collectCoverage) ||
48+
config.collectCoverage ||
49+
(!options.testcase && !options.testNamePattern && !onlyFailures);
4850

4951
const testOption = {
5052
includes,

0 commit comments

Comments
 (0)