MCPcopy Create free account
hub / github.com/ReactTooltip/react-tooltip / tooltip-controlled-and-ref.spec.js

File tooltip-controlled-and-ref.spec.js

src/test/tooltip-controlled-and-ref.spec.js:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import React, { useEffect, useState, useRef } from 'react'
2import { render, screen, fireEvent, waitFor, act } from '@testing-library/react'
3import '@testing-library/jest-dom'
4import { computeTooltipPosition } from '../utils'

Callers

nothing calls this directly

Calls 6

flushPendingTimersFunction · 0.90
advanceTimersFunction · 0.90
waitForTooltipFunction · 0.90
waitForTooltipToCloseFunction · 0.90
clickAnchorFunction · 0.90

Tested by

no test coverage detected