Function: renderWithMantine()¶
renderWithMantine(
ui,options?):RenderResult\<__module,HTMLElement,HTMLElement>
Defined in: src/test/test-utils.tsx:64
Render component with Mantine Provider
Use this for testing components that use Mantine UI components but don't need routing or authentication.
Parameters¶
ui¶
ReactElement
options?¶
Omit\<RenderOptions\<__module, HTMLElement, HTMLElement>, "wrapper">
Returns¶
RenderResult\<__module, HTMLElement, HTMLElement>
Example¶
const { getByText } = renderWithMantine(<MyComponent />);