mouseMove = (node, x, y) => {
        const doc = node ? node.ownerDocument : document;
        const mouseEvent = new MouseEvent("mousemove", {
          button: 0,
          clientX: x,
          clientY: y,
          screenX: 0,
          screenY: 0
        });
        doc.dispatchEvent(mouseEvent);
      }
Simulate a movement; can't use TestUtils here because it uses react's event system only,
but <DraggableCore> attaches event listeners directly to the document.
Would love to new MouseEvent() here but it doesn't work with PhantomJS / old browsers.
var e = new MouseEvent('mousemove', {clientX: 100, clientY: 100});

Taken from: https://github.com/react-grid-layout/react-draggable/blob/master/specs/draggable.spec.jsx#L1000C1-L1003C70