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