Skip to content

Commit 7b8b854

Browse files
committed
fix(testPathPatterns): allow absPath
1 parent 941b7c4 commit 7b8b854

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/jest-pattern/src/TestPathPatterns.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,10 @@ export class TestPathPatternsExecutor {
115115
if (this.toRegex(regexStr).test(pathToTest)) {
116116
return true;
117117
}
118+
119+
if (this.toRegex(regexStr).test(absPath)) {
120+
return true;
121+
}
118122
}
119123
return false;
120124
}

0 commit comments

Comments
 (0)