MCPcopy
hub / github.com/tj/commander.js / createTestCommand

Function createTestCommand

tests/testHelpers.js:12–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10 */
11
12export function createTestCommand() {
13 const cmd = new Command();
14 cmd
15 .exitOverride() // So we get exceptions instead of process.exit
16 .configureOutput({
17 writeOut: () => {},
18 writeErr: () => {},
19 });
20 return cmd;
21}

Calls 2

exitOverrideMethod · 0.95
configureOutputMethod · 0.80

Tested by 2

getTestCasesFunction · 0.72
makeProgramFunction · 0.72