(method: string, url: string, init: { headers?: Record<string, string>; body?: string } = {})
| 70 | } |
| 71 | |
| 72 | async function fetchWith(method: string, url: string, init: { headers?: Record<string, string>; body?: string } = {}): Promise<{ status: number; bodyText: string }> { |
| 73 | const res = await fetch(url, { method, headers: init.headers, body: init.body }); |
| 74 | return { status: res.status, bodyText: await res.text() }; |
| 75 | } |
| 76 | |
| 77 | describe('daemon — loopback listener', () => { |
| 78 | let stub: Awaited<ReturnType<typeof startStubStateServer>>; |
no test coverage detected