From b989e3bd0ad49e0d946180654fa421c07c30f766 Mon Sep 17 00:00:00 2001 From: mateo Date: Fri, 18 Sep 2026 00:10:03 +0000 Subject: [PATCH] test(ui): stub fetch without a type suppression in interactions playground test Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- .../playground/llm_calls/interactions_api.test.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 () => {