MCPcopy
hub / github.com/testing-library/react-testing-library / onUncaughtError

Function onUncaughtError

src/__tests__/error-handlers.js:125–127  ·  view source on GitHub ↗
(error, errorInfo)

Source from the content-addressed store, hash-verified

123 expect(() => {
124 renderHook(useThrower, {
125 onUncaughtError(error, errorInfo) {
126 console.log({error, errorInfo})
127 },
128 })
129 }).toThrow(
130 'onUncaughtError is not supported. The `render` call will already throw on uncaught errors.',

Callers 1

error-handlers.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…