( argv: string[], details: Record<string, unknown>, message = 'Failed to start daemon', )
| 13 | } |
| 14 | |
| 15 | async function runCliCaptureWithErrorDetails( |
| 16 | argv: string[], |
| 17 | details: Record<string, unknown>, |
| 18 | message = 'Failed to start daemon', |
| 19 | ): Promise<CapturedCliRun> { |
| 20 | return runCliCapture(argv, async () => { |
| 21 | throw new AppError('COMMAND_FAILED', message, details); |
| 22 | }); |
| 23 | } |
| 24 | |
| 25 | test('close treats daemon startup failure as no-op', async () => { |
| 26 | const result = await runCliWithDaemonStartupFailure(['close']); |
no test coverage detected