12 lines
395 B
TypeScript
12 lines
395 B
TypeScript
|
|
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>
|
||
|
|
),
|
||
|
|
});
|
||
|
|
}
|