(cwd: string)
| 42 | } |
| 43 | |
| 44 | async function assertDirectory(cwd: string): Promise<void> { |
| 45 | const stat = await fs.stat(cwd) |
| 46 | if (!stat.isDirectory()) throw new Error(`cwd is not a directory: ${cwd}`) |
| 47 | } |
| 48 | |
| 49 | function bufferOutput(state: ActiveProcess, chunk: ProcessOutputChunk): void { |
| 50 | state.output.push(chunk) |
no test coverage detected