MCPcopy
hub / github.com/testing-library/react-hooks-testing-library / checkResult

Function checkResult

src/core/asyncUtils.ts:18–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16function asyncUtils(act: Act, addResolver: (callback: () => void) => void): AsyncUtils {
17 const wait = async (callback: () => boolean | void, { interval, timeout }: WaitOptions) => {
18 const checkResult = () => {
19 const callbackResult = callback()
20 return callbackResult ?? callbackResult === undefined
21 }
22
23 const timeoutSignal = createTimeoutController(timeout)
24

Callers 2

waitForResultFunction · 0.85
waitFunction · 0.85

Calls 1

callbackFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…