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

Class

src/__tests__/error-handlers.js:56–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54 const handleComponentDidCatch = jest.fn()
55 const onCaughtError = jest.fn()
56 class ErrorBoundary extends React.Component {
57 state = {error: null}
58 static getDerivedStateFromError(error) {
59 return {error}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected