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

Function AllProviders

client/src/components/test-utils.tsx:8–20  ·  view source on GitHub ↗
({
  children,
  relayEnvironment,
}: {
  children?: React.ReactNode;
  relayEnvironment: Environment;
})

Source from the content-addressed store, hash-verified

6import { Environment } from 'react-relay'
7
8const AllProviders = ({
9 children,
10 relayEnvironment,
11}: {
12 children?: React.ReactNode;
13 relayEnvironment: Environment;
14}) => {
15 return (
16 <React.Suspense fallback="Loading...">
17 <Providers relayEnvironment={relayEnvironment}>{children}</Providers>
18 </React.Suspense>
19 )
20}
21
22function customRender(ui: ReactElement, options?: RenderOptions): { environment: MockEnvironment } {
23 const environment = createMockEnvironment()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected