()
| 48 | let calls = 0; |
| 49 | |
| 50 | const fetch: typeof globalThis.fetch = async () => { |
| 51 | calls++; |
| 52 | const body: JSONWebKeySet = { keys: keys.map((k) => ({ ...k })) }; |
| 53 | return new Response(JSON.stringify(body), { |
| 54 | status: 200, |
| 55 | headers: { "content-type": "application/json" }, |
| 56 | }); |
| 57 | }; |
| 58 | |
| 59 | return { |
| 60 | fetch, |
no outgoing calls
no test coverage detected