(
stdout: string = '',
options: { exitCode?: number; stderr?: string; success?: boolean } = {},
)
| 36 | } |
| 37 | |
| 38 | export function createMockExecResult( |
| 39 | stdout: string = '', |
| 40 | options: { exitCode?: number; stderr?: string; success?: boolean } = {}, |
| 41 | ): ExecResult { |
| 42 | return { |
| 43 | stdout, |
| 44 | stderr: options.stderr ?? '', |
| 45 | exitCode: options.exitCode ?? 0, |
| 46 | success: options.success ?? (options.exitCode ?? 0) === 0, |
| 47 | command: '', |
| 48 | duration: 0, |
| 49 | timestamp: new Date().toISOString(), |
| 50 | }; |
| 51 | } |
| 52 | |
| 53 | export interface MockSandbox { |
| 54 | sandbox: Sandbox; |
no outgoing calls
no test coverage detected