MCPcopy
hub / github.com/testing-library/react-hooks-testing-library / asyncHook.test.ts

File asyncHook.test.ts

src/__tests__/asyncHook.test.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { useState, useRef, useEffect } from 'react'
2
3describe('async hook tests', () => {
4 const useSequence = (values: string[], intervalMs = 50) => {

Callers

nothing calls this directly

Calls 5

useSequenceFunction · 0.85
waitForNextUpdateFunction · 0.85
waitForFunction · 0.85
waitForValueToChangeFunction · 0.85
renderHookFunction · 0.50

Tested by

no test coverage detected