You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently upgraded from vitest 2.x to 3.x, and in doing so updated @vitest/browser to 3.1.1 from 2.1.8. In doing so, this bumped the requirement for @testing-library/user-event from ^14.5.2 to ^14.6.1. This change in @testing-library/user-event has broken all of my (non browser mode) tests.
Warning: Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition.
I've had an initial go at trying to recreate this bug on a stackblitz but wasn't able to. If this is not a minimal enough of an example I can spend some time trying to do that.
For reference, this commit is one where the tests are working, where only the @testing-library/user-event requirement has been changed.
Yes, please try reducing the reproduction. From the description, I'm not sure how we see this as Vitest bug than @testing-library/user-event bug (or any testing-library family).
Hello @m-lyon. Please provide a minimal reproduction using a GitHub repository or StackBlitz (you can also use examples). Issues marked with needs reproduction will be closed if they have no activity within 3 days.
Describe the bug
I recently upgraded from vitest 2.x to 3.x, and in doing so updated @vitest/browser to
3.1.1
from2.1.8
. In doing so, this bumped the requirement for@testing-library/user-event
from^14.5.2
to^14.6.1
. This change in@testing-library/user-event
has broken all of my (non browser mode) tests.An example of an error is:
and dialog in the
@vitest/ui
showsReproduction
The errors can be recreated in this repository commit by running
npm run test
.I've had an initial go at trying to recreate this bug on a stackblitz but wasn't able to. If this is not a minimal enough of an example I can spend some time trying to do that.
For reference, this commit is one where the tests are working, where only the
@testing-library/user-event
requirement has been changed.System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: