test: retain focused CommonJS export regressions

Keep uncovered assignment and binding regressions in the shared CLI and MCP runtime oracle, with a POSIX escaped-path fixture.

Co-authored-by: You Wish <29498139+Y0UW1SH@users.noreply.github.com>
This commit is contained in:
morluto
2026-10-11 11:07:15 +08:00
co-authored by You Wish
parent 4e4b15b825
commit a99b2fd3b5
2 changed files with 112 additions and 1 deletions
@@ -80,7 +80,11 @@ describe("compiled reference-source import preflight failures", () => {
const directory = await createTestTempDirectory(
"rea-reference-cli-status-",
);
const root = join(directory, "input");
// Exercise JSON escaping on POSIX too; Windows paths already need it.
const root = join(
directory,
process.platform === "win32" ? "input" : "input\\escaped",
);
if (scenario.rootKind === "regular-file")
await writeFile(root, "inert input\n");
const result = await cli.run({