diff --git a/src/security/temp-path-guard.test.ts b/src/security/temp-path-guard.test.ts index d27dd5c7580..3d28c7e3aa7 100644 --- a/src/security/temp-path-guard.test.ts +++ b/src/security/temp-path-guard.test.ts @@ -10,7 +10,7 @@ const SKIP_PATTERNS = [ /\.e2e\.tsx?$/, /\.d\.ts$/, /[\\/](?:__tests__|tests)[\\/]/, - /[\\/]test-helpers(?:\.[^\\/]+)?\.ts$/, + /[\\/][^/\\]*test-helpers(?:\.[^\\/]+)?\.ts$/, ]; function shouldSkip(relativePath: string): boolean {