diff --git a/client/src/lib/hooks/__tests__/useConnection.test.tsx b/client/src/lib/hooks/__tests__/useConnection.test.tsx index 91833f60..b1974365 100644 --- a/client/src/lib/hooks/__tests__/useConnection.test.tsx +++ b/client/src/lib/hooks/__tests__/useConnection.test.tsx @@ -327,7 +327,16 @@ describe("useConnection", () => { // Verify the fetch function includes the proxy auth header const mockFetch = mockSSETransport.options?.eventSourceInit?.fetch; const testUrl = "http://test.com"; - await mockFetch?.(testUrl); + await mockFetch?.(testUrl, { + headers: { + "Accept": "text/event-stream", + }, + cache: "no-store", + mode: "cors", + signal: new AbortController().signal, + redirect: "follow", + credentials: "include", + }); expect(global.fetch).toHaveBeenCalledTimes(2); expect(