Skip to content

Commit 317d079

Browse files
Remove redundant 'globalConfig.testPathPattern == null' check
1 parent 344bc43 commit 317d079

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

packages/jest-core/src/SearchSource.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,8 +287,6 @@ export default class SearchSource {
287287
paths,
288288
globalConfig.collectCoverage,
289289
);
290-
} else if (globalConfig.testPathPattern == null) {
291-
return {tests: []};
292290
} else {
293291
return this.findMatchingTests(globalConfig.testPathPattern);
294292
}

0 commit comments

Comments
 (0)