-
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(react): wrap state updates in act() with async/await (#336)
Fix React testing warnings by properly wrapping state updates and effects in `act()` with `async`/`await`. This ensures all state updates and side effects complete before making assertions. - Make test functions async where needed - Wrap renders and state updates in `act(async () => {...})` - Add small delays where needed for effects to complete - Fix `setActive` and `setActiveAccount` test implementation - Simplify store state change test assertions
- Loading branch information
Showing
1 changed file
with
48 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters