Skip to content

Commit

Permalink
Remove redundant 'globalConfig.testPathPattern == null' check
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonchinn178 committed Sep 21, 2023
1 parent 344bc43 commit 317d079
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions packages/jest-core/src/SearchSource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -287,8 +287,6 @@ export default class SearchSource {
paths,
globalConfig.collectCoverage,
);
} else if (globalConfig.testPathPattern == null) {
return {tests: []};
} else {
return this.findMatchingTests(globalConfig.testPathPattern);
}
Expand Down

0 comments on commit 317d079

Please sign in to comment.