(shouldThrow?: boolean)
| 2 | |
| 3 | describe('error hook tests', () => { |
| 4 | function throwError(shouldThrow?: boolean) { |
| 5 | if (shouldThrow) { |
| 6 | throw new Error('expected') |
| 7 | } |
| 8 | } |
| 9 | |
| 10 | runForRenderers(['default', 'dom', 'native', 'server/hydrated'], ({ renderHook }) => { |
| 11 | describe('synchronous', () => { |
no outgoing calls
no test coverage detected
searching dependent graphs…