One of the breaking changes of userEvent in v14 is the change to asynchronous user events:
userEvent.click() // <-- returns a Promise!This sounds like a pretty small change, but let's take a look at some of the implications.
Consider this Counter component: