()
| 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); |
no test coverage detected