(payload: unknown)
| 3 | const importFreshClient = (cacheKey: string) => import(`../client?${cacheKey}`); |
| 4 | |
| 5 | const createJsonResponse = (payload: unknown) => |
| 6 | ({ |
| 7 | ok: true, |
| 8 | status: 200, |
| 9 | text: async () => JSON.stringify(payload), |
| 10 | json: async () => payload, |
| 11 | }) as Response; |
| 12 | |
| 13 | const setupClientMocks = ({ |
| 14 | isFirstTime = false, |