MCPcopy
hub / github.com/webpack/webpack / fixAsyncError

Function fixAsyncError

test/helpers/createLazyTestEnv.js:95–102  ·  view source on GitHub ↗
(block)

Source from the content-addressed store, hash-verified

93 * @returns {void}
94 */
95 const fixAsyncError = (block) => {
96 // By default jest leaks memory as it stores asyncError
97 // for each "it" call to track the origin test suite
98 // We want to evaluate this early here to avoid leaking memory
99 block.asyncError = {
100 stack: block.asyncError.stack
101 };
102 };
103 return {
104 /**
105 * @param {number} time time

Callers 3

itFunction · 0.85
beforeEachFunction · 0.85
afterEachFunction · 0.85

Calls

no outgoing calls

Tested by 1

itFunction · 0.68