Skip to content

Commit

Permalink
refactor: use process.execPath
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker committed Oct 9, 2022
1 parent 45ad676 commit 8f437e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/_helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ function runCLI({ args = [], cwd = process.cwd(), colors = false }) {
const env = colors ? { FORCE_COLOR: 1 } : { NO_COLOR: 1 }
return new Promise((resolve) => {
execFile(
'node',
process.execPath,
[cliScript, ...args],
{ cwd, env },
(error, stdout, stderr) => {
Expand Down

0 comments on commit 8f437e6

Please sign in to comment.