(pid: number, timeoutMs: number)
| 383 | } |
| 384 | |
| 385 | async function waitProcessExit(pid: number, timeoutMs: number): Promise<boolean> { |
| 386 | return waitFor(() => !isAlive(pid), timeoutMs, `pid ${pid} to exit`).then(() => true, () => false); |
| 387 | } |
| 388 | |
| 389 | function readJson(file: string): any | null { |
| 390 | try { return JSON.parse(fs.readFileSync(file, 'utf8')); } catch { return null; } |
no test coverage detected