()
| 33 | const PROMPT_TIMEOUT_MS = 120_000; |
| 34 | |
| 35 | async function daemonReachable(): Promise<boolean> { |
| 36 | try { |
| 37 | const res = await fetchWithReport(`${BASE_URL}/api/v1/meta`, { |
| 38 | signal: AbortSignal.timeout(500), |
| 39 | }); |
| 40 | return res.ok; |
| 41 | } catch { |
| 42 | return false; |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | const reachable = await daemonReachable(); |
| 47 | const describeLive = reachable ? describe : describe.skip; |
no test coverage detected