({
children,
relayEnvironment,
}: {
children?: React.ReactNode;
relayEnvironment: Environment;
})
| 6 | import { Environment } from 'react-relay' |
| 7 | |
| 8 | const 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 | |
| 22 | function customRender(ui: ReactElement, options?: RenderOptions): { environment: MockEnvironment } { |
| 23 | const environment = createMockEnvironment() |
nothing calls this directly
no outgoing calls
no test coverage detected