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

Function flush

apps/sim/hooks/use-autosave.test.tsx:62–67  ·  view source on GitHub ↗

Flush pending microtasks (awaited promises) inside an act() boundary.

()

Source from the content-addressed store, hash-verified

60
61/** Flush pending microtasks (awaited promises) inside an act() boundary. */
62async function flush() {
63 await act(async () => {
64 await Promise.resolve()
65 await Promise.resolve()
66 })
67}
68
69describe('useAutosave', () => {
70 beforeEach(() => {

Callers 1

Calls 1

resolveMethod · 0.65

Tested by

no test coverage detected