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
Normally, we call fireEvent to trigger events, and that should already be wrapped in the eventWrapper. If the user's using @testing-library/react, then this eventWrapper will be act.
However, we don't always use fireEvent and if this were to trigger a state update:
Find everywhere we're triggering events and wrap them individually
I think if option 1 will work (and I think it will) then that's the easiest and will allow us to avoid issues of people forgetting to add it in the future.
The text was updated successfully, but these errors were encountered:
Normally, we call
fireEvent
to trigger events, and that should already be wrapped in theeventWrapper
. If the user's using@testing-library/react
, then this eventWrapper will beact
.However, we don't always use
fireEvent
and if this were to trigger a state update:user-event/src/focus.js
Line 10 in 8b15930
Then we're toast.
So I see two solutions to this:
eventWrapper
I think if option 1 will work (and I think it will) then that's the easiest and will allow us to avoid issues of people forgetting to add it in the future.
The text was updated successfully, but these errors were encountered: