Skip to content

Commit

Permalink
Run mocha using process.execPath instead of harcoding "node" (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Andarist committed May 4, 2022
1 parent ad2b7a6 commit d337cbc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/build/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}.`);
Expand Down

1 comment on commit d337cbc

@omarwbassam
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

``<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5491389695000639" crossorigin="anonymous"></script>

Please sign in to comment.