fireEvent for PointerEvent only receives Event minus my set options

Viewed 236

I'm trying to send a PointerEvent to my code for testing. This is a pointerDown but I've seen the same problem with pointerMove as well as pointerUp

// Fake primary mouse down input
    fireEvent.pointerDown(domElement, {
      button: MouseButton.Primary,
      clientX: 5,
      clientY: 5,
    });

When I receive the event to my handler event.button, event.clientX and event.clientY are all undefined.

I confirmed that using this the same way for a WheelEvent works as expected.

Am I doing something wrong in this instance specifically?

1 Answers
Related