(props: Omit<ErrorBoundaryPropsWithFallback, "fallback">)
| 68 | }); |
| 69 | |
| 70 | function render(props: Omit<ErrorBoundaryPropsWithFallback, "fallback">) { |
| 71 | act(() => { |
| 72 | root.render( |
| 73 | <ErrorBoundary {...props} fallback="Error" ref={errorBoundaryRef}> |
| 74 | <MaybeThrows>Content</MaybeThrows> |
| 75 | </ErrorBoundary>, |
| 76 | ); |
| 77 | }); |
| 78 | } |
| 79 | |
| 80 | it('should call "onError" prop if one is provided', () => { |
| 81 | shouldThrow = true; |
no test coverage detected
searching dependent graphs…