2

I'm studying test using jest, and React testing-library. I have a question about userEvent.

There is a touchStart option in fireEvent.

How can I use touchStart option in userEvent.

fireEvent.touchStart(screen.getByRole('button')); Please let me know

Ken White
  • 123,280
  • 14
  • 225
  • 444
ezdar
  • 45
  • 5
  • 1
    Didn't support "touch" events yet. https://github.com/testing-library/user-event/issues/880 – Lin Du Sep 20 '22 at 03:52

0 Answers0