import type { ReactElement, ReactNode } from "react"; import { render, type RenderOptions } from "@testing-library/react"; import { MantineProvider } from "@mantine/core"; import { theme } from "../theme/theme"; function MantineWrapper({ children }: { children: ReactNode }) { return ( {children} ); } export function renderWithMantine( ui: ReactElement, options?: Omit, ) { return render(ui, { wrapper: MantineWrapper, ...options }); } export * from "@testing-library/react";