diff --git a/clients/web/src/App.test.tsx b/clients/web/src/App.test.tsx index c6a2dd0d..659a0433 100644 --- a/clients/web/src/App.test.tsx +++ b/clients/web/src/App.test.tsx @@ -4258,7 +4258,9 @@ describe("App dedupes concurrent OAuth clears that share a storage key (#2217)", updateServer: updateServerSpy, updateServerSettings: updateServerSettingsSpy, removeServer: vi.fn(), - } as unknown as ReturnType); + reorderServers: vi.fn(), + importSource: vi.fn().mockResolvedValue({ servers: {} }), + }); }); afterEach(() => { @@ -4299,7 +4301,9 @@ describe("App dedupes concurrent OAuth clears that share a storage key (#2217)", await user.click(screen.getByText("connect")); await waitFor(() => expect(clientInstances).toHaveLength(1)); - const client = clientInstances[0] as unknown as { + // The instances are typed `EventTarget`; an intersection names the + // test-only spy without erasing that (Copilot). + const client = clientInstances[0] as EventTarget & { clearOAuthTokens: ReturnType; };