(body: Record<string, unknown>, status = 200)
| 6 | import { ServerAuthService, SERVER_AUTH_SESSION_MAX_AGE_SECONDS } from "./serverAuthService"; |
| 7 | |
| 8 | function jsonResponse(body: Record<string, unknown>, status = 200): Response { |
| 9 | return new Response(JSON.stringify(body), { |
| 10 | status, |
| 11 | headers: { |
| 12 | "Content-Type": "application/json", |
| 13 | }, |
| 14 | }); |
| 15 | } |
| 16 | |
| 17 | function mockFetch( |
| 18 | fn: (input: string | URL, init?: RequestInit) => Response | Promise<Response> |
no outgoing calls
no test coverage detected