(exitCode = 0)
| 106 | resolveWait = resolve; |
| 107 | }); |
| 108 | const finish = (exitCode = 0): void => { |
| 109 | if (currentExitCode !== null) return; |
| 110 | currentExitCode = exitCode; |
| 111 | stdout.end(); |
| 112 | stderr.end(); |
| 113 | resolveWait(exitCode); |
| 114 | }; |
| 115 | return { |
| 116 | proc: { |
| 117 | stdin: { end: vi.fn(), write: vi.fn() } as unknown as Writable, |
no test coverage detected