()
| 61 | }; |
| 62 | |
| 63 | function createFakeProc(): FakeProc { |
| 64 | const proc = new EventEmitter() as FakeProc; |
| 65 | proc.stderr = new EventEmitter(); |
| 66 | proc.kill = vi.fn(() => { |
| 67 | proc.killed = true; |
| 68 | return true; |
| 69 | }); |
| 70 | proc.killed = false; |
| 71 | return proc; |
| 72 | } |
| 73 | |
| 74 | function createSpawnSpy(): { |
| 75 | spawn: (command: string, args: readonly string[]) => FakeProc; |