Skip to content

Commit ed54df2

Browse files
authored
Update test-cli-node-print-help.js
1 parent 7e6da56 commit ed54df2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/parallel/test-cli-node-print-help.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ startPrintHelpTest();
5757

5858
// Test closed stdout for `node --help`. Like `node --help | head -n5`.
5959
(async () => {
60-
const cp = spawn('node', ['--help']);
60+
const cp = spawn('node', ['--help'], {
61+
stdio: ['inherit', 'pipe', 'inherit'],
62+
});
6163
cp.stdout.destroy();
6264
const [exitCode] = await once(cp, 'exit');
6365
assert.strictEqual(exitCode, 0);

0 commit comments

Comments
 (0)