(error, errorInfo)
| 141 | }; |
| 142 | } |
| 143 | componentDidCatch(error, errorInfo) { |
| 144 | expect(error).toBe(this.state.error); |
| 145 | if (this.props.expectedStack !== undefined) { |
| 146 | expect(normalizeCodeLocInfo(errorInfo.componentStack)).toBe( |
| 147 | this.props.expectedStack, |
| 148 | ); |
| 149 | } |
| 150 | } |
| 151 | componentDidMount() { |
| 152 | expect(this.state.hasError).toBe(true); |
| 153 | expect(this.state.error).toBeTruthy(); |
nothing calls this directly
no test coverage detected