MCPcopy Index your code
hub / github.com/simstudioai/sim / flush

Function flush

apps/sim/hooks/use-table-undo.test.ts:78–80  ·  view source on GitHub ↗

Drain the microtask queue so all async chunks in executeAction finish.

()

Source from the content-addressed store, hash-verified

76
77/** Drain the microtask queue so all async chunks in executeAction finish. */
78async function flush() {
79 await new Promise((r) => setTimeout(r, 0))
80}
81
82beforeEach(() => {
83 vi.clearAllMocks()

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected