UNPKG

@baseplate-dev/ui-components

Version:

Shared UI component library

7 lines 545 B
import { jsx as _jsx } from "react/jsx-runtime"; import { render } from '@testing-library/react'; import { DEFAULT_COMPONENT_STRINGS } from '#src/constants/strings.js'; import { ComponentStringsProvider } from '#src/contexts/component-strings.js'; const UiComponentProviders = ({ children, }) => (_jsx(ComponentStringsProvider, { value: DEFAULT_COMPONENT_STRINGS, children: children })); export const renderWithProviders = (ui, options) => render(ui, { wrapper: UiComponentProviders, ...options }); //# sourceMappingURL=render.test-helper.js.map