From 4c9028439cad0a18d1d66fc7688515cbff92d92f Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Tue, 17 Mar 2026 20:44:37 -0700 Subject: [PATCH] Tests: make seam guardrails path-safe --- src/plugin-sdk/channel-import-guardrails.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugin-sdk/channel-import-guardrails.test.ts b/src/plugin-sdk/channel-import-guardrails.test.ts index 996b8ed193c..6b1c4c069be 100644 --- a/src/plugin-sdk/channel-import-guardrails.test.ts +++ b/src/plugin-sdk/channel-import-guardrails.test.ts @@ -190,8 +190,8 @@ function collectExtensionSourceFiles(): string[] { fullPath.includes(".fixture.") || fullPath.includes(".snap") || fullPath.includes("test-support") || - fullPath.endsWith("/api.ts") || - fullPath.endsWith("/runtime-api.ts") + entry.name === "api.ts" || + entry.name === "runtime-api.ts" ) { continue; } @@ -269,7 +269,7 @@ function collectExtensionFiles(extensionId: string): string[] { fullPath.includes(".spec.") || fullPath.includes(".fixture.") || fullPath.includes(".snap") || - fullPath.endsWith("/runtime-api.ts") + entry.name === "runtime-api.ts" ) { continue; }