MCPcopy
hub / github.com/callstack/react-native-testing-library / flushMicroTasks

Function flushMicroTasks

src/flush-micro-tasks.ts:3–5  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1import { setImmediate } from './helpers/timers';
2
3export function flushMicroTasks() {
4 return new Promise((resolve) => setImmediate(resolve));
5}

Callers 3

waitForInternalFunction · 0.90
index.tsFile · 0.90
wrapAsyncFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…