MCPcopy Create free account
hub / github.com/react-dropzone/react-dropzone / drainPendingTimers

Function drainPendingTimers

src/index.spec.js:3765–3767  ·  view source on GitHub ↗

* drainPendingTimers just runs pending timers wrapped in act() to avoid * getting warnings from react about side effects that happen async. * * This can be used whenever a setTimeout(), setInterval() or async operation is used * which triggers a state update.

()

Source from the content-addressed store, hash-verified

3763 * which triggers a state update.
3764 */
3765function drainPendingTimers() {
3766 return act(() => jest.runOnlyPendingTimers());
3767}
3768
3769/**
3770 * focusWindow triggers focus on the window

Callers 1

index.spec.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…