diff --git a/ui/litellm-dashboard/src/app/(dashboard)/projects/_components/ProjectKeysSection.test.tsx b/ui/litellm-dashboard/src/app/(dashboard)/projects/_components/ProjectKeysSection.integration.test.tsx similarity index 98% rename from ui/litellm-dashboard/src/app/(dashboard)/projects/_components/ProjectKeysSection.test.tsx rename to ui/litellm-dashboard/src/app/(dashboard)/projects/_components/ProjectKeysSection.integration.test.tsx index 382c34abcca..3e9fd4faf3d 100644 --- a/ui/litellm-dashboard/src/app/(dashboard)/projects/_components/ProjectKeysSection.test.tsx +++ b/ui/litellm-dashboard/src/app/(dashboard)/projects/_components/ProjectKeysSection.integration.test.tsx @@ -4,6 +4,11 @@ import type { OnUrlUpdateFunction } from "nuqs/adapters/testing"; import { fireEvent, renderWithProviders, screen, waitFor } from "../../../../../tests/test-utils"; import { ProjectKeysSection } from "./ProjectKeysSection"; +vi.mock("next/navigation", async () => ({ + ...(await vi.importActual("next/navigation")), + useRouter: () => ({ push: vi.fn() }), +})); + const mockUseKeys = vi.fn(); vi.mock("@/app/(dashboard)/hooks/keys/useKeys", () => ({ useKeys: (...args: unknown[]) => mockUseKeys(...args),