()
| 37 | } |
| 38 | |
| 39 | export function getStatus(): ApiServerStatus { |
| 40 | return { |
| 41 | running: server !== null && startedAt !== null, |
| 42 | port: server !== null && startedAt !== null ? runningPort : null, |
| 43 | startedAt, |
| 44 | error: lastError, |
| 45 | } |
| 46 | } |
| 47 | |
| 48 | const PORT_FALLBACK_LIMIT = 10 |
| 49 |
no outgoing calls
no test coverage detected