From 5eddcbd24e00f2a0286127d9f77d17630280a4e2 Mon Sep 17 00:00:00 2001 From: Mack Solomon Date: Thu, 11 Apr 2019 19:36:16 -0700 Subject: [PATCH] remove unnecessary code --- packages/jest-core/src/SearchSource.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/jest-core/src/SearchSource.ts b/packages/jest-core/src/SearchSource.ts index 016408bde8bc..188ed620fadb 100644 --- a/packages/jest-core/src/SearchSource.ts +++ b/packages/jest-core/src/SearchSource.ts @@ -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;