(port: number, timeout?: number)
| 81 | } |
| 82 | |
| 83 | public async waitForPort(port: number, timeout?: number): Promise<PreviewInfo> { |
| 84 | return this.waitFor({ port }, (data) => data.port === port, timeout).catch((error) => { |
| 85 | throw new Error(format('Failed to await port %d', port), { cause: error }); |
| 86 | }); |
| 87 | } |
| 88 | } |