Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/testing-library/react-hooks-testing-library
/ errorHook.test.ts
File
errorHook.test.ts
src/__tests__/errorHook.test.ts:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
{ useState, useEffect } from
'react'
2
3
describe(
'error hook tests'
, () => {
4
function
throwError(shouldThrow?: boolean) {
Callers
nothing calls this directly
Calls
6
useError
Function · 0.85
useAsyncError
Function · 0.85
waitForNextUpdate
Function · 0.85
useEffectError
Function · 0.85
renderHook
Function · 0.50
rerender
Function · 0.50
Tested by
no test coverage detected