Skip to main content
Glama
render.tsx933 B
// SPDX-FileCopyrightText: Copyright Orangebot, Inc. and Medplum contributors // SPDX-License-Identifier: Apache-2.0 // Sets up MantineProvider for all tests // See: https://mantine.dev/guides/jest/ import { MantineProvider } from '@mantine/core'; import type { RenderResult } from '@testing-library/react'; import { act, fireEvent, screen, render as testingLibraryRender, waitFor, within } from '@testing-library/react'; import userEvent from '@testing-library/user-event'; import type { JSX, ReactNode } from 'react'; export { act, fireEvent, screen, userEvent, waitFor, within }; const theme = {}; export function render(ui: ReactNode, wrapper?: ({ children }: { children: ReactNode }) => JSX.Element): RenderResult { return testingLibraryRender(ui, { wrapper: ({ children }: { children: ReactNode }) => ( <MantineProvider theme={theme}>{wrapper ? wrapper({ children }) : children}</MantineProvider> ), }); }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/medplum/medplum'

If you have feedback or need assistance with the MCP directory API, please join our Discord server