(chunk: string)
| 128 | private readonly waiters: Array<() => void> = []; |
| 129 | |
| 130 | write(chunk: string): void { |
| 131 | this.text += chunk; |
| 132 | if (!this.ready && this.text.includes("Listening for events.\n")) { |
| 133 | this.ready = true; |
| 134 | for (const resolve of this.waiters) resolve(); |
| 135 | this.waiters.length = 0; |
| 136 | } |
| 137 | } |
| 138 | |
| 139 | async wait(timeoutMs: number): Promise<void> { |
| 140 | if (this.ready) return; |
no outgoing calls
no test coverage detected