diff --git a/ui/litellm-dashboard/src/app/(dashboard)/playground/llm_calls/interactions_api.test.tsx b/ui/litellm-dashboard/src/app/(dashboard)/playground/llm_calls/interactions_api.test.tsx index b037763c79b..af862063c9c 100644 --- a/ui/litellm-dashboard/src/app/(dashboard)/playground/llm_calls/interactions_api.test.tsx +++ b/ui/litellm-dashboard/src/app/(dashboard)/playground/llm_calls/interactions_api.test.tsx @@ -23,12 +23,12 @@ describe("interactions_api", () => { const mockFetch = vi.fn(); beforeEach(() => { - // @ts-ignore - assigning to global for test environment - global.fetch = mockFetch; + vi.stubGlobal("fetch", mockFetch); }); afterEach(() => { vi.clearAllMocks(); + vi.unstubAllGlobals(); }); it("parses native Gemini step events and captures the nested interaction model", async () => {