MCPcopy Create free account
hub / github.com/nodejs/node / getEvaluatedArgv

Function getEvaluatedArgv

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

Source from the content-addressed store, hash-verified

11import assert from 'assert';
12
13async function getEvaluatedArgv(flag) {
14 const script = fixtures.path('debugger', 'empty.js');
15 const cli = startCLI([script, flag]);
16 try {
17 await cli.waitForInitialBreak();
18 await cli.waitForPrompt();
19 await cli.command('exec process.argv');
20 return cli.output;
21 } finally {
22 await cli.quit();
23 }
24}
25
26async function checkForwardedHelp(flag) {
27 const output = await getEvaluatedArgv(flag);

Callers 1

checkForwardedHelpFunction · 0.85

Calls 3

startCLIFunction · 0.85
commandMethod · 0.80
pathMethod · 0.45

Tested by

no test coverage detected