(ui: ReactElement, options?: RenderOptions)
| 20 | } |
| 21 | |
| 22 | function 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 | |
| 33 | function renderWithUser(component: ReactElement) { |
| 34 | return { |
no test coverage detected