test: skip helper directories in runtime guardrail scans
This commit is contained in:
@@ -192,6 +192,7 @@ describe("temp path guard", () => {
|
||||
expect(shouldSkip("src/commands/test-helpers.ts")).toBe(true);
|
||||
expect(shouldSkip("src/commands/sessions.test-helpers.ts")).toBe(true);
|
||||
expect(shouldSkip("src\\commands\\sessions.test-helpers.ts")).toBe(true);
|
||||
expect(shouldSkip("src/plugins/test-helpers/fs-fixtures.ts")).toBe(true);
|
||||
});
|
||||
|
||||
it("detects dynamic and ignores static fixtures", () => {
|
||||
|
||||
@@ -17,7 +17,7 @@ const DEFAULT_GUARDRAIL_SKIP_PATTERNS = [
|
||||
/\.suite\.tsx?$/,
|
||||
/\.e2e\.tsx?$/,
|
||||
/\.d\.ts$/,
|
||||
/[\\/](?:__tests__|tests|test-utils|test-support)[\\/]/,
|
||||
/[\\/](?:__tests__|tests|test-helpers|test-utils|test-support)[\\/]/,
|
||||
/[\\/][^\\/]*test-helpers(?:\.[^\\/]+)?\.ts$/,
|
||||
/[\\/][^\\/]*test-utils(?:\.[^\\/]+)?\.ts$/,
|
||||
/[\\/][^\\/]*test-harness(?:\.[^\\/]+)?\.ts$/,
|
||||
|
||||
Reference in New Issue
Block a user