(args: string)
| 20 | }; |
| 21 | |
| 22 | const runMayFail = (args: string): { stdout: string; status: number } => { |
| 23 | try { |
| 24 | const stdout = run(args); |
| 25 | return { stdout, status: 0 }; |
| 26 | } catch (err: unknown) { |
| 27 | const error = err as NodeJS.ErrnoException & { |
| 28 | stdout?: string; |
| 29 | stderr?: string; |
| 30 | status?: number; |
| 31 | }; |
| 32 | return { |
| 33 | stdout: (error.stdout ?? '') + (error.stderr ?? ''), |
| 34 | status: error.status ?? 1, |
| 35 | }; |
| 36 | } |
| 37 | }; |
| 38 | |
| 39 | describe('CLI Surface (e2e)', () => { |
| 40 | describe('top-level', () => { |
no test coverage detected