test(setup): use native Windows launcher in layered OpenCode fixture (#4947)

This commit is contained in:
ShuaixinHuang
2026-10-20 17:25:38 +08:00
committed by GitHub
parent e9fc8fb30c
commit afde435c94
@@ -318,7 +318,13 @@ cliTest(
mcp: {
rea: clientRegistrationEntry(
"opencode",
[resolve("scripts/rea.mjs"), "mcp"],
// Windows launches JavaScript through Node; otherwise setup repairs
// the command before this test can exercise layered environment data.
[
...(process.platform === "win32" ? [process.execPath] : []),
resolve("scripts/rea.mjs"),
"mcp",
],
env,
),
},