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

Function makeProgram

tests/incrementNodeInspectorPort.test.cjs:26–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24 });
25
26 function makeProgram() {
27 const program = new commander.Command();
28 const fileWhichExists = path.join(__dirname, './fixtures/pm-cache.js');
29 program.command('cache', 'stand-alone command', {
30 executableFile: fileWhichExists,
31 });
32 return program;
33 }
34
35 function extractMockExecArgs(spawnSpy) {
36 return spawnSpy.mock.calls[0].arguments[1].slice(0, -1);

Calls 1

commandMethod · 0.95

Tested by

no test coverage detected