MCPcopy
hub / github.com/ReactTooltip/react-tooltip / advanceTimers

Function advanceTimers

src/test/test-utils.js:5–9  ·  view source on GitHub ↗
(ms = 0)

Source from the content-addressed store, hash-verified

3import { TooltipController } from '../components/TooltipController'
4
5export function advanceTimers(ms = 0) {
6 act(() => {
7 jest.advanceTimersByTime(ms)
8 })
9}
10
11export function flushPendingTimers() {
12 act(() => {

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…