Skip to content

OpenAI's Codex Security CLI and TypeScript SDK for finding, validating, and fixing security vulnerabilities. npm: https://www.npmjs.com/package/@openai/codex-security

test(sdk): skip a duplicate Windows MCP launcher case (#2052)

Michael D'Angelocd5f80f8ba82
diff --git a/sdk/typescript/tests-ts/runtime.test.ts b/sdk/typescript/tests-ts/runtime.test.ts
index f781834df..6be4227e9 100644
--- a/sdk/typescript/tests-ts/runtime.test.ts
+++ b/sdk/typescript/tests-ts/runtime.test.ts
@@ -866,7 +866,13 @@ describe("plugin runtime preparation", () => {
expect(installerCalls).toBe(1);
});
- test.each(["shell", "shell with root", "node", "node with root"])(
+ test.each([
+ "shell",
+ "shell with root",
+ // Without a source update, both shebangs exercise the same Windows batch launcher.
+ ...(process.platform === "win32" ? [] : ["node"]),
+ "node with root",
+ ])(
"keeps %s MCP roots isolated outside the credential home",
async (interpreter) => {
const root = await temporaryDirectory();