(input, init)
| 92 | | undefined |
| 93 | |
| 94 | const fetchOverride: FetchOverride = async (input, init) => { |
| 95 | request = { |
| 96 | url: input instanceof Request ? input.url : String(input), |
| 97 | method: init?.method, |
| 98 | headers: new Headers(init?.headers), |
| 99 | } |
| 100 | return new Response(JSON.stringify({ data: [{ id: 'test-model' }] }), { |
| 101 | status: 200, |
| 102 | headers: { 'content-type': 'application/json' }, |
| 103 | }) |
| 104 | } |
| 105 | |
| 106 | return { |
| 107 | fetchOverride, |
nothing calls this directly
no outgoing calls
no test coverage detected