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
I have already learned that there's an issue with createEvent, testing-library/dom-testing-library#558
but I don't need a reference to the event created so I can avoid it.
My use-gesture/react implementation looks like this
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
at first thanks for this package , I find it very useful. 😃👍
I am trying to test the Pinch Gesture but I am not quite sure how to trigger the event.
I am using:
"jest": "^27.4.7",
"@testing-library/react": "^12.1.2",
"@use-gesture/react": "^10.2.0",
so the situation should be similar to this package.
I figured out how to test other gestures like drag, wheel, hover, move but the pinch gesture seems a little tricky.
I tried the same approach like in your test: https://github.com/pmndrs/use-gesture/blob/main/test/pinch.test.tsx - without success.
I have already learned that there's an issue with createEvent,
testing-library/dom-testing-library#558
but I don't need a reference to the event created so I can avoid it.
My use-gesture/react implementation looks like this
and for testing:
Am I missing something?
Beta Was this translation helpful? Give feedback.
All reactions