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
This commit is contained in:
ShuaixinHuang authored and GitHub committed 2026-11-07 01:27:27 +08:00
1 parent 39bd0cc625
commit 0fc35a098a
2 files changed
+4 -2

No files matched your search

@@ -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),
@@ -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 }) => {