MCPcopy Create free account
hub / github.com/ReactTooltip/react-tooltip / focusAndFlush

Function focusAndFlush

src/test/tooltip-focus-visible.spec.js:65–70  ·  view source on GitHub ↗
(anchor, init)

Source from the content-addressed store, hash-verified

63}
64
65function focusAndFlush(anchor, init) {
66 act(() => {
67 fireEvent.focus(anchor, init)
68 jest.advanceTimersByTime(30)
69 })
70}
71
72describe('tooltip focus visibility', () => {
73 beforeEach(() => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected