Skip to content

Commit 047d629

Browse files
committed
fix collectCoverage
1 parent 91a3132 commit 047d629

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/cli.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ const onlyFailures = options.onlyFailures || false;
5959
const collectCoverage =
6060
Boolean(options.collectCoverage) ||
6161
config.collectCoverage ||
62-
(testFiles !== undefined && options.testNamePattern !== undefined && !onlyFailures);
62+
(testFiles === undefined && options.testNamePattern === undefined && !onlyFailures);
6363

6464
const testOption = {
6565
includes,

0 commit comments

Comments
 (0)