-
Notifications
You must be signed in to change notification settings - Fork 48.3k
expose TestUtils.act()
for batching actions in tests
#14744
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
threepointone
merged 33 commits into
facebook:master
from
threepointone:flush-sync-effects
Feb 5, 2019
Merged
Changes from 1 commit
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
e1f7952
expose unstable_interact for batching actions in tests
5407e88
move to TestUtils
e8a03d0
move it all into testutils
723f347
s/interact/act
ac7416d
warn when calling hook-like setState outside batching mode
1993be9
pass tests
3c18517
merge-temp
b98d051
Merge branch 'flush-sync-effects' into warn-jsdom-setstate
324fe0e
move jsdom test to callsite
e7ebd84
mark failing tests
0d3b45a
pass most tests (except one)
20a959d
augh IE
ee4ebb9
pass fuzz tests
4cb92ad
better warning, expose the right batchedUpdates on TestRenderer for www
aa1d531
move it into hooks, test for dom
00d0614
expose a flag on the host config, move stuff around
1b2e657
rename, pass flow
86a443e
pass flow... again
cec1ed1
tweak .act() type
a216c15
Merge remote-tracking branch 'upstream/master' into flush-sync-effects
6fa4202
enable for all jest environments/renderers; pass (most) tests.
6cba8f5
pass all tests
f946089
expose just the warning from the scheduler
8617b64
don't return values
3bfa963
Merge remote-tracking branch 'upstream/master' into flush-sync-effects
8f30593
Merge branch 'master' into flush-sync-effects
c126f10
a bunch of changes.
790ce2a
fixes and nits
32c7e1a
"fire events that udpates state"
5873317
nit
0a4b3cf
🙄
b6689e1
my bad
26a6db5
hi andrew
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
enable for all jest environments/renderers; pass (most) tests.
- Loading branch information
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
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
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'll need to remember to update the wording, e.g. "UI" not "ui", and also it's not clear where to import "act" from. It's also not clear what "unexpected UI in testing" means.