()
| 175 | // setImmediate is enough in practice but we double up for safety against |
| 176 | // chained microtask scheduling differences across Node patch versions. |
| 177 | async function settleMicrotasks() { |
| 178 | await new Promise((r) => setImmediate(r)); |
| 179 | await new Promise((r) => setImmediate(r)); |
| 180 | } |
| 181 | |
| 182 | // Per-test reset hook. Wrap each test body so cooldown / state-file / |
| 183 | // fetch / spy state are deterministic. |
no outgoing calls
no test coverage detected