bot-with-admin-starter/front/test-utils/render.tsx

12 lines
395 B
TypeScript
Raw Normal View History

2026-02-14 19:33:09 +03:00
import { render as testingLibraryRender } from '@testing-library/react';
import { MantineProvider } from '@mantine/core';
import { theme } from '../src/theme';
export function render(ui: React.ReactNode) {
return testingLibraryRender(<>{ui}</>, {
wrapper: ({ children }: { children: React.ReactNode }) => (
<MantineProvider theme={theme}>{children}</MantineProvider>
),
});
}