Closed Shagon1k closed 1 year ago
Mostly migration is all about replacing userEvent usage with async/await as now API always returns Promise.
Additionally it is worth to use "setup()" approach (even though right now it should work without it): const user = userEvent.setup()
const user = userEvent.setup()
https://github.com/testing-library/user-event/releases/tag/v14.0.0 https://medium.com/software-fast-radius/upgrading-react-testing-librarys-user-event-to-version-14-d3fee658247
Project is already use v.14 of user-event as well as handle all events promise-like. Thus, closed.
Description
Mostly migration is all about replacing userEvent usage with async/await as now API always returns Promise.
Additionally it is worth to use "setup()" approach (even though right now it should work without it):
const user = userEvent.setup()
Notes
https://github.com/testing-library/user-event/releases/tag/v14.0.0 https://medium.com/software-fast-radius/upgrading-react-testing-librarys-user-event-to-version-14-d3fee658247