mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-14 19:16:17 -06:00
Run mocha using process.execPath instead of harcoding "node" (#48797)
This commit is contained in:
parent
ad2b7a6d31
commit
d337cbc19f
@ -122,7 +122,9 @@ async function runConsoleTests(runJs, defaultReporter, runInParallel, watchMode,
|
||||
|
||||
try {
|
||||
setNodeEnvToDevelopment();
|
||||
const { exitCode } = await exec("node", args, { cancelToken });
|
||||
const { exitCode } = await exec(process.execPath, args, {
|
||||
cancelToken,
|
||||
});
|
||||
if (exitCode !== 0) {
|
||||
errorStatus = exitCode;
|
||||
error = new Error(`Process exited with status code ${errorStatus}.`);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user