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

Function waitForTooltipUpdates

src/test/tooltip-styling.spec.js:10–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8jest.useRealTimers()
9
10const waitForTooltipUpdates = async () => {
11 await act(async () => {
12 await new Promise((resolve) => {
13 setTimeout(resolve, 25)
14 })
15 })
16}
17
18const hoverAndFindTooltip = async (anchorText = 'Hover Me') => {
19 const anchorElement = screen.getByText(anchorText)

Callers 1

hoverAndFindTooltipFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected