Skip to content

Commit

Permalink
Update test-cli-node-print-help.js
Browse files Browse the repository at this point in the history
  • Loading branch information
jcbhmr authored Mar 14, 2024
1 parent 56f1f60 commit db21cb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-cli-node-print-help.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ startPrintHelpTest();

// Test closed stdout for `node --help`. Like `node --help | head -n5`.
(async () => {
const cp = spawn('node', ['--help'], {
const cp = spawn(process.execPath, ['--help'], {
stdio: ['inherit', 'pipe', 'inherit'],
});
cp.stdout.destroy();
Expand Down

0 comments on commit db21cb3

Please sign in to comment.