MCPcopy Create free account
hub / github.com/testing-library/dom-testing-library / copyStackTrace

Function copyStackTrace

src/wait-for.js:14–16  ·  view source on GitHub ↗
(target, source)

Source from the content-addressed store, hash-verified

12// This is so the stack trace the developer sees is one that's
13// closer to their code (because async stack traces are hard to follow).
14function copyStackTrace(target, source) {
15 target.stack = source.stack.replace(source.message, target.message)
16}
17
18function waitFor(
19 callback,

Callers 3

waitForFunction · 0.85
checkRealTimersCallbackFunction · 0.85
handleTimeoutFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected