MCPcopy Create free account
hub / github.com/testing-library/react-testing-library / useThrower

Function useThrower

src/__tests__/error-handlers.js:118–120  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

116
117test('onUncaughtError is not supported in renderHook', () => {
118 function useThrower() {
119 throw new Error('Boom!')
120 }
121 const onUncaughtError = jest.fn(() => {})
122
123 expect(() => {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…