Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/testing-library/react-hooks-testing-library
/ suspenseHook.test.ts
File
suspenseHook.test.ts
src/__tests__/suspenseHook.test.ts:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
describe(
'suspense hook tests'
, () => {
2
const
cache: { value?: Promise<string | Error> | string | Error } = {}
3
const
fetchName = (isSuccessful: boolean) => {
4
if
(!cache.value) {
Callers
nothing calls this directly
Calls
3
useFetchName
Function · 0.85
waitForNextUpdate
Function · 0.85
renderHook
Function · 0.50
Tested by
no test coverage detected