(stderr: string)
| 31 | |
| 32 | // Mock failed command execution |
| 33 | function mockFailCommand(stderr: string) { |
| 34 | return { |
| 35 | output: () => |
| 36 | Promise.resolve({ |
| 37 | success: false, |
| 38 | stdout: new Uint8Array(0), |
| 39 | stderr: new TextEncoder().encode(stderr), |
| 40 | code: 1, |
| 41 | signal: null, |
| 42 | }), |
| 43 | }; |
| 44 | } |
| 45 | |
| 46 | // Mock logger to avoid actual logging during tests |
| 47 | import * as logger from "../logger.ts"; |
no outgoing calls
no test coverage detected