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
We are migrating from v13->v14 and going through setting up the user object via the user.setup() method. There are some differences between doing this and using the backwards-compatible importing UserEvent directly.
I would think that each test would behave the same way, but it looks like the click from the direct import also hover but the click from the userEvent.setup does not.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
We are migrating from v13->v14 and going through setting up the
user
object via theuser.setup()
method. There are some differences between doing this and using the backwards-compatible importingUserEvent
directly.I have a test case here: https://stackblitz.com/edit/vitest-dev-vitest-ypkzea?file=test%2Fcomponent.test.tsx
I would think that each test would behave the same way, but it looks like the
click
from the direct import alsohover
but theclick
from theuserEvent.setup
does not.Any pointers here?
Beta Was this translation helpful? Give feedback.
All reactions