(ready: boolean)
| 371 | let stderr = ""; |
| 372 | let settled = false; |
| 373 | const settle = (ready: boolean) => { |
| 374 | if (settled) return; |
| 375 | settled = true; |
| 376 | resolve({ child, ready, stderr }); |
| 377 | }; |
| 378 | const timer = setTimeout(() => settle(false), 60_000); |
| 379 | child.stdout.on("data", (chunk: Buffer) => { |
| 380 | if (/Daemon ready on http:\/\//.test(chunk.toString())) { |
no test coverage detected