Add test env to provider

This commit is contained in:
Vitaly Rtishchev
2025-06-16 13:32:48 +04:00
parent e4d565fca8
commit a1af77b733

View File

@ -5,7 +5,9 @@ import { theme } from '../theme';
export function render(ui: React.ReactNode) { export function render(ui: React.ReactNode) {
return testingLibraryRender(<>{ui}</>, { return testingLibraryRender(<>{ui}</>, {
wrapper: ({ children }: { children: React.ReactNode }) => ( wrapper: ({ children }: { children: React.ReactNode }) => (
<MantineProvider theme={theme}>{children}</MantineProvider> <MantineProvider theme={theme} env="test">
{children}
</MantineProvider>
), ),
}); });
} }