Skip to content

Commit 1068d03

Browse files
committed
chore: use execpath
1 parent b33f697 commit 1068d03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/e2e/e2eUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export function useCliRunner(): { runServer: RunServerFunction } {
3636
/** `true` by default so whitespace is stripped from the output */
3737
stripWhitespace?: boolean;
3838
}): ReturnType<RunServerFunction> {
39-
const result = await execFileAsync(CLI_PATH, [...args, ...(dryRun ? ["--dryRun"] : [])]);
39+
const result = await execFileAsync(process.execPath, [CLI_PATH, ...args, ...(dryRun ? ["--dryRun"] : [])]);
4040
if (stripWhitespace) {
4141
result.stdout = result.stdout.replace(/\s/g, "");
4242
}

0 commit comments

Comments
 (0)