Shagon1k / AHurynovich-CV

Aliaksei's curriculum vitae
MIT License
3 stars 0 forks source link

[AH-56] Migrate Testing Library User-Event to v.14 #151

Closed Shagon1k closed 1 year ago

Shagon1k commented 1 year ago

Description

Mostly migration is all about replacing userEvent usage with async/await as now API always returns Promise. image

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

Shagon1k commented 1 year ago

Project is already use v.14 of user-event as well as handle all events promise-like. Thus, closed.