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
As noted in RTL docs, any function call that causes an update to React state must be wrapped in a call to act. We've failed to do this in numerous tests and thus are receiving some console errors when running tests.
You can see these errors simply by running npm run test:unit.
To fix this, wrap the state modifying code in act per the docs linked above.
Task summary
As noted in RTL docs, any function call that causes an update to React state must be wrapped in a call to
act
. We've failed to do this in numerous tests and thus are receiving some console errors when running tests.You can see these errors simply by running
npm run test:unit
.To fix this, wrap the state modifying code in
act
per the docs linked above.Linked resources
Test files where this is happening:
Flyout.test.tsx
Additional information
No response
The text was updated successfully, but these errors were encountered: