You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Test a react component which has event handlers for mouse events
What happened:
Test failed. console.log indicates that the event does not contain a nativeEvent similar to what is present when running in the browser (chrome 73.0.3683.86)
react-testing-library
version: 6.0.4react
version: 16.8.2node
version: 10.14.1npm
version: 6.8.0Relevant code or config:
App.js
App.test.js
What you did:
Test a react component which has event handlers for mouse events
What happened:
Test failed. console.log indicates that the event does not contain a nativeEvent similar to what is present when running in the browser (chrome 73.0.3683.86)
Reproduction:
https://codesandbox.io/s/61ol4lxnvk
Problem description:
console.log from App.handleMouseDown is different when testing vs running in the browser
Suggested solution:
Unknown
Not sure if this is a bug or something I am doing incorrectly. If the second, an example in the docs might be a good addition. Thank you
The text was updated successfully, but these errors were encountered: