(block)
| 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 |
no outgoing calls