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

Function makeCommand

tests/command.helpCommand.test.js:58–66  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56
57 describe('help command processed on correct command', () => {
58 function makeCommand() {
59 const program = new commander.Command();
60 program.configureOutput({
61 writeOut: () => {},
62 writeErr: () => {},
63 });
64
65 return program;
66 }
67
68 test('when "program help" then program', () => {
69 const program = makeCommand();

Callers 1

Calls 1

configureOutputMethod · 0.95

Tested by

no test coverage detected