mirror of
https://github.com/mantinedev/next-app-template.git
synced 2025-11-10 04:22:01 +10:00
12 lines
391 B
TypeScript
12 lines
391 B
TypeScript
import { render as testingLibraryRender } from '@testing-library/react';
|
|
import { MantineProvider } from '@mantine/core';
|
|
import { theme } from '../theme';
|
|
|
|
export function render(ui: React.ReactNode) {
|
|
return testingLibraryRender(<>{ui}</>, {
|
|
wrapper: ({ children }: { children: React.ReactNode }) => (
|
|
<MantineProvider theme={theme}>{children}</MantineProvider>
|
|
),
|
|
});
|
|
}
|