MCPcopy Create free account
hub / github.com/emwalker/digraph / customRender

Function customRender

client/src/components/test-utils.tsx:22–31  ·  view source on GitHub ↗
(ui: ReactElement, options?: RenderOptions)

Source from the content-addressed store, hash-verified

20}
21
22function customRender(ui: ReactElement, options?: RenderOptions): { environment: MockEnvironment } {
23 const environment = createMockEnvironment()
24 render(ui, {
25 wrapper: (props) => (
26 <AllProviders relayEnvironment={environment} {...props} />
27 ),
28 ...options,
29 })
30 return { environment }
31}
32
33function renderWithUser(component: ReactElement) {
34 return {

Callers 1

renderWithUserFunction · 0.85

Calls 1

renderFunction · 0.85

Tested by

no test coverage detected