-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement support for using async callbacks with
act
Implement initial support for `act` callbacks returning a Promise, in which case the promise is awaited before state updates and effects are flushed. See https://reactjs.org/blog/2019/08/08/react-v16.9.0.html#async-act-for-testing for more details on the motivation.
- Loading branch information
1 parent
066c789
commit 5658e22
Showing
2 changed files
with
65 additions
and
10 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
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