MCPcopy
hub / github.com/testing-library/dom-testing-library / waitForWrapper

Function waitForWrapper

src/wait-for.js:183–190  ·  view source on GitHub ↗
(callback, options)

Source from the content-addressed store, hash-verified

181}
182
183function waitForWrapper(callback, options) {
184 // create the error here so its stack trace is as close to the
185 // calling code as possible
186 const stackTraceError = new Error('STACK_TRACE_MESSAGE')
187 return getConfig().asyncWrapper(() =>
188 waitFor(callback, {stackTraceError, ...options}),
189 )
190}
191
192export {waitForWrapper as waitFor}
193

Callers

nothing calls this directly

Calls 3

getConfigFunction · 0.90
waitForFunction · 0.85
asyncWrapperMethod · 0.80

Tested by

no test coverage detected