romgain / react-select-event

🦗 Simulate react-select events for react-testing-library
MIT License
210 stars 24 forks source link

Migrate to using @testing-library/user-event #174

Closed artursvonda closed 1 year ago

artursvonda commented 1 year ago

The userEvent better represents actions taken by user/browser and actually allows us to get rid of some hacks.

Also, testing now with React v18.

And removed redundant act calls as well since, both, fireEvent and userEvent wrap calls in act implicitly (when required).

artursvonda commented 1 year ago

Closed in favour of https://github.com/romgain/react-select-event/pull/175