MCPcopy
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

1describe('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

useFetchNameFunction · 0.85
waitForNextUpdateFunction · 0.85
renderHookFunction · 0.50

Tested by

no test coverage detected