fix(test): use direct Node launcher on macOS

This commit is contained in:
morluto
2026-07-24 03:31:26 +00:00
parent 42fbbb297b
commit 13f3372a8b
3 changed files with 52 additions and 2 deletions
+2 -2
View File
@@ -92,9 +92,9 @@ export async function verifyPackageEnvironment({
};
}
const packageHopperEnvironment = (root) => {
export const packageHopperEnvironment = (root, platform = process.platform) => {
const fakeLauncher = join(root, "tests/fixtures/fakeLauncher.mjs");
if (process.platform === "win32")
if (platform !== "linux")
return {
HOPPER_LAUNCHER_PATH: process.execPath,
HOPPER_LOADER_ARGS_JSON: JSON.stringify([fakeLauncher]),