Run `mocha` using `process.execPath` instead of harcoding `"node"` (#48797)
This commit is contained in:
Родитель
ad2b7a6d31
Коммит
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}.`);
|
||||
|
|
Загрузка…
Ссылка в новой задаче