(command: Command, symbol = 'handle', args: string[] = [])
| 24 | } |
| 25 | |
| 26 | function json(command: Command, symbol = 'handle', args: string[] = []) { |
| 27 | const result = runCli(command, symbol, [...args, '--json']); |
| 28 | expect(result.status, result.stderr).toBe(0); |
| 29 | return JSON.parse(result.stdout); |
| 30 | } |
| 31 | |
| 32 | function resultKey(command: Command) { |
| 33 | return command === 'impact' ? 'affected' : command; |
no test coverage detected