| 1 | import { vi } from "vitest"; |
| 2 | |
| 3 | export const fetchwithRequestOptions = vi.fn( |
| 4 | async (url, options, requestOptions) => { |
| 5 | console.log("Mocked fetch called with:", url, options, requestOptions); |
| 6 | return { |
| 7 | ok: true, |
| 8 | status: 200, |
| 9 | statusText: "OK", |
| 10 | }; |
| 11 | }, |
| 12 | ); |
| 13 | |
| 14 | export const streamSse = vi.fn(function* () { |
| 15 | yield ""; |
| 16 | }); |