Skip to content

Commit

Permalink
remove unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
Mack Solomon committed Apr 12, 2019
1 parent f7eafee commit 5eddcbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/jest-core/src/SearchSource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ export default class SearchSource {
if (globalConfig.testPathPattern !== null) {
return this._filterTestPathsWithStats(
relatedTests.tests,
globalConfig.testPathPattern.split('|').pop(),
globalConfig.testPathPattern,
);
} else {
return relatedTests;
Expand Down

0 comments on commit 5eddcbd

Please sign in to comment.