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; }