MCPcopy Create free account
hub / github.com/adobe/react-spectrum / Test

Function Test

packages/react-aria/test/interactions/useHover.test.js:321–328  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

319
320 it('should trigger onHoverEnd after an element is removed', async function () {
321 function Test(props) {
322 let {hoverProps, isHovered} = useHover(props);
323 return (
324 <div {...hoverProps} data-testid="test" data-hovered={isHovered || undefined}>
325 {props.children}
326 </div>
327 );
328 }
329
330 function Inner() {
331 let [show, setShow] = useState(true);

Callers

nothing calls this directly

Calls 1

useHoverFunction · 0.90

Tested by

no test coverage detected