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

Function fireWithTimers

src/test/test-utils.js:23–30  ·  view source on GitHub ↗
(callback, ms = 0)

Source from the content-addressed store, hash-verified

21}
22
23export function fireWithTimers(callback, ms = 0) {
24 act(() => {
25 callback()
26 if (ms) {
27 jest.advanceTimersByTime(ms)
28 }
29 })
30}
31
32export function hoverAnchor(anchor, ms = 0) {
33 fireWithTimers(() => {

Callers 3

hoverAnchorFunction · 0.85
unhoverAnchorFunction · 0.85
clickAnchorFunction · 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…