* Check if a port is in use.
(port: number)
| 146 | * Check if a port is in use. |
| 147 | */ |
| 148 | async function isPortInUse(port: number): Promise<boolean> { |
| 149 | try { |
| 150 | return await tcpPortUsed.check(port, '127.0.0.1') |
| 151 | } catch { |
| 152 | return false |
| 153 | } |
| 154 | } |
| 155 | |
| 156 | /** |
| 157 | * Wait for the server to respond to health checks. |
no outgoing calls
no test coverage detected