diff --git a/frontend/src/tests/setup.ts b/frontend/src/tests/setup.tsx similarity index 78% rename from frontend/src/tests/setup.ts rename to frontend/src/tests/setup.tsx index 8054df7ac..040ec6a84 100644 --- a/frontend/src/tests/setup.ts +++ b/frontend/src/tests/setup.tsx @@ -2,10 +2,21 @@ import { http } from "msw"; import { HttpResponse } from "msw"; -import { vitest } from "vitest"; +import { vi, vitest } from "vitest"; import "@testing-library/jest-dom"; import server from "./mocks/node"; +vi.mock("recharts", async () => { + const OriginalRechartsModule = await vi.importActual("recharts"); + + return { + ...OriginalRechartsModule, + ResponsiveContainer: ({ children }: { children: React.ReactNode }) => ( +