(stdout: string)
| 17 | |
| 18 | // Mock successful command execution |
| 19 | function mockSuccessCommand(stdout: string) { |
| 20 | return { |
| 21 | output: () => |
| 22 | Promise.resolve({ |
| 23 | success: true, |
| 24 | stdout: new TextEncoder().encode(stdout), |
| 25 | stderr: new Uint8Array(0), |
| 26 | code: 0, |
| 27 | signal: null, |
| 28 | }), |
| 29 | }; |
| 30 | } |
| 31 | |
| 32 | // Mock failed command execution |
| 33 | function mockFailCommand(stderr: string) { |
no outgoing calls
no test coverage detected