MCPcopy Index your code
hub / github.com/react/react / simulateMouseMove

Function simulateMouseMove

packages/react-dom/src/__tests__/ReactDOMFiber-test.js:801–820  ·  view source on GitHub ↗
(from, to)

Source from the content-addressed store, hash-verified

799 let thirdTarget = null;
800
801 function simulateMouseMove(from, to) {
802 if (from) {
803 from.dispatchEvent(
804 new MouseEvent('mouseout', {
805 bubbles: true,
806 cancelable: true,
807 relatedTarget: to,
808 }),
809 );
810 }
811 if (to) {
812 to.dispatchEvent(
813 new MouseEvent('mouseover', {
814 bubbles: true,
815 cancelable: true,
816 relatedTarget: from,
817 }),
818 );
819 }
820 }
821
822 try {
823 await act(() => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected