Skip to content

armgit / rea

Public Imported from GitHub
0

Reverse engineer anything with agents, from app behavior down to native binaries.

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

ShuaixinHuangafde435c94e9
diff --git a/tests/acceptance/setup/registrationRuntimeEnvironmentCli.test.ts b/tests/acceptance/setup/registrationRuntimeEnvironmentCli.test.ts
index 9617e19b8..7af5a60a7 100644
--- a/tests/acceptance/setup/registrationRuntimeEnvironmentCli.test.ts
+++ b/tests/acceptance/setup/registrationRuntimeEnvironmentCli.test.ts
@@ -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,
),
},