MCPcopy Create free account
hub / github.com/EvoMap/evolver / settleMicrotasks

Function settleMicrotasks

test/lifecycleForceUpdateTrigger.test.js:177–180  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

175// setImmediate is enough in practice but we double up for safety against
176// chained microtask scheduling differences across Node patch versions.
177async 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.

Calls

no outgoing calls

Tested by

no test coverage detected