Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ReactTooltip/react-tooltip
/ flushMicrotasks
Function
flushMicrotasks
src/test/test-utils.js:17–21 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
15
}
16
17
export
async
function
flushMicrotasks() {
18
await
act(
async
() => {
19
await
Promise.resolve()
20
})
21
}
22
23
export
function
fireWithTimers(callback, ms = 0) {
24
act(() => {
Callers
3
tooltip-advanced.spec.js
File · 0.90
tooltip-interaction-behavior.spec.js
File · 0.90
tooltip-observers.spec.js
File · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected