(argv: string[])
| 53 | }); |
| 54 | |
| 55 | async function execute(argv: string[]): Promise<string> { |
| 56 | const write = vi.fn(); |
| 57 | await run(argv, write); |
| 58 | expect(write).toHaveBeenCalledOnce(); |
| 59 | return write.mock.calls[0][0]; |
| 60 | } |
| 61 | |
| 62 | describe('help and validation', () => { |
| 63 | it('prints root help with the current commands', async () => { |
no test coverage detected