MCPcopy Index your code
hub / github.com/nodejs/node / checkForwardedHelp

Function checkForwardedHelp

test/parallel/test-debugger-inspect-help-forwarding.mjs:26–31  ·  view source on GitHub ↗
(flag)

Source from the content-addressed store, hash-verified

24}
25
26async function checkForwardedHelp(flag) {
27 const output = await getEvaluatedArgv(flag);
28 assert(output.includes(`'${flag}'`),
29 `expected debuggee process.argv to include "${flag}", got:\n${output}`);
30 assert.doesNotMatch(output, /Usage: .+ inspect/);
31}
32
33await checkForwardedHelp('--help');
34await checkForwardedHelp('-h');

Calls 3

getEvaluatedArgvFunction · 0.85
includesMethod · 0.80
assertFunction · 0.50

Tested by

no test coverage detected