-
Notifications
You must be signed in to change notification settings - Fork 46.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
expose
TestUtils.act()
for batching actions in tests (#14744)
* expose unstable_interact for batching actions in tests * move to TestUtils * move it all into testutils * s/interact/act * warn when calling hook-like setState outside batching mode * pass tests * merge-temp * move jsdom test to callsite * mark failing tests * pass most tests (except one) * augh IE * pass fuzz tests * better warning, expose the right batchedUpdates on TestRenderer for www * move it into hooks, test for dom * expose a flag on the host config, move stuff around * rename, pass flow * pass flow... again * tweak .act() type * enable for all jest environments/renderers; pass (most) tests. * pass all tests * expose just the warning from the scheduler * don't return values * a bunch of changes. can't return values from .act don't try to await .act calls pass tests * fixes and nits * "fire events that udpates state" * nit * 🙄 * my bad * hi andrew (prettier fix)
- Loading branch information
Sunil Pai
authored
Feb 5, 2019
1 parent
fb3f7bf
commit 267ed98
Showing
13 changed files
with
583 additions
and
112 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
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
Oops, something went wrong.