-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Flush any effects scheduled with `useEffect` using the `act` helper on the initial render. This means that in a test a developer can write: ``` const wrapper = mount(<ComponentThatUsesEffects/>) ``` And know that effects will have been run before they start interacting with the result wrapper. See enzymejs/enzyme#2034 for corresponding change to the React adapter.
- Loading branch information
1 parent
e95a673
commit 48fbb27
Showing
3 changed files
with
69 additions
and
5 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
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