mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
5f760fba3098aabf7d5e9c9fb2bc3eff841ff1c1
act (#26602)
Many of our Suspense-related tests were written before the `act` API was introduced, and use the lower level `waitFor` helpers instead. So they are less resilient to changes in implementation details than they could be. This converts some of our test suite to use `act` in more places. I found these while working on a PR to expand our fallback throttling mechanism to include all renders that result from a promise resolving, even if there are no more fallbacks in the tree. This isn't all the affected tests, just some of them — I'll be sharding the changes across multiple PRs. DiffTrain build for commit https://github.com/facebook/react/commit/f9de24a26af23ce63b6f0474670870c86e1a631c.
react-fbsource-import
Languages
JavaScript
67.1%
TypeScript
29.4%
HTML
1.5%
CSS
1.1%
C++
0.6%
Other
0.2%