(pid: number, timeoutMs: number)
| 188 | } |
| 189 | |
| 190 | async function waitProcessExit(pid: number, timeoutMs: number): Promise<boolean> { |
| 191 | return waitFor(() => !isAlive(pid), timeoutMs).then(() => true).catch(() => false); |
| 192 | } |
| 193 | |
| 194 | async function staleIndex(root: string): Promise<Buffer> { |
| 195 | fs.writeFileSync(path.join(root, 'app.ts'), 'export function originalSymbol() {}\n'); |
no test coverage detected