I want to test an API which uses the mouse position to do some computations. I am using react testing library and mocha.
Something like -