From 0fc35a098a36c42a566211187462bc6754cf4411 Mon Sep 17 00:00:00 2001 From: ShuaixinHuang <1836656514@qq.com> Date: Sat, 7 Nov 2026 01:27:27 +0800 Subject: [PATCH] test(javascript): normalize module resolution oracle paths (#9159) * test(javascript): normalize module resolution oracle paths * test(process): align symlink fixture with filesystem checkpoints * test(frida): assert the CLI spawn Evidence contract * test(mcp): use an unsupported analysis-view parent * test(browser): separate source-location line bounds from parity --- .../applications/javascriptModuleResolutionSemantics.test.ts | 4 ++-- tests/boundary/cli/mcpDoctorHelpCli.test.ts | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) 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 }) => {