diff --git a/tests/acceptance/applications/javascriptModuleResolutionSemantics.test.ts b/tests/acceptance/applications/javascriptModuleResolutionSemantics.test.ts index 1404f6cf7d..9091e23e73 100644 --- a/tests/acceptance/applications/javascriptModuleResolutionSemantics.test.ts +++ b/tests/acceptance/applications/javascriptModuleResolutionSemantics.test.ts @@ -78,13 +78,13 @@ cliTest.for(["CLI", "stdio MCP"] as const)( "node_modules/mapped/x%2Ey.js": 'throw new Error("must never load");', "oracle.mjs": ` import { fileURLToPath } from "node:url"; -import { relative } from "node:path"; +import { relative, sep } from "node:path"; import { existsSync } from "node:fs"; const valid = ${JSON.stringify(Object.keys(valid))}; const rejected = ${JSON.stringify(Object.keys(rejected))}; const resolveFile = request => { const path = fileURLToPath(import.meta.resolve(request)); - return { path: relative(process.cwd(), path), exists: existsSync(path) }; + return { path: relative(process.cwd(), path).split(sep).join("/"), exists: existsSync(path) }; }; console.log(JSON.stringify({ valid: valid.map(resolveFile), diff --git a/tests/boundary/cli/mcpDoctorHelpCli.test.ts b/tests/boundary/cli/mcpDoctorHelpCli.test.ts index 50b5ad2ba5..8f630f7eef 100644 --- a/tests/boundary/cli/mcpDoctorHelpCli.test.ts +++ b/tests/boundary/cli/mcpDoctorHelpCli.test.ts @@ -158,7 +158,9 @@ describe("MCP doctor help boundary", () => { }, CLI_INTEGRATION_TIMEOUT_MS, ); +}); +describe("MCP doctor timing boundary", () => { workspaceCliTest( "reports doctor timing on stderr while preserving JSON output", async ({ cli }) => {