Skip to content

Delete toFlushAndYield test helpers#26311

Closed
acdlite wants to merge 1 commit intofacebook:mainfrom
acdlite:delete-toflushandyield
Closed

Delete toFlushAndYield test helpers#26311
acdlite wants to merge 1 commit intofacebook:mainfrom
acdlite:delete-toflushandyield

Conversation

@acdlite
Copy link
Collaborator

@acdlite acdlite commented Mar 4, 2023

Now that the tests have been codemodded, we can delete toFlushAndYield et al from the codebase. See #26285 for full context.

The mock implementation of Scheduler still exposes some (unstable- prefixed) APIs that can be used for some edge cases, like when testing the mock Scheduler itself. There are only a few tests that do this, and even some of those could be rewritten to use act or waitFor.

Now that the tests have been codemodded, we can delete toFlushAndYield
et al from the codebase. See facebook#26285 for full context.

The mock implementation of Scheduler still exposes some (unstable-
prefixed) APIs that can be used for some edge cases, like when testing
the mock Scheduler itself. There are only a few tests that do this, and
even some of those could be rewritten to use `act` or `waitFor`.
@acdlite acdlite requested review from gnoff and tyao1 March 4, 2023 23:07
@facebook-github-bot facebook-github-bot added CLA Signed React Core Team Opened by a member of the React Core Team labels Mar 4, 2023
@react-sizebot
Copy link

Comparing: 25685d8...0cba581

Critical size changes

Includes critical production bundles, as well as any change greater than 2%:

Name +/- Base Current +/- gzip Base gzip Current gzip
oss-stable/react-dom/cjs/react-dom.production.min.js = 155.25 kB 155.25 kB = 48.98 kB 48.98 kB
oss-experimental/react-dom/cjs/react-dom.production.min.js = 157.24 kB 157.24 kB = 49.65 kB 49.65 kB
facebook-www/ReactDOM-prod.classic.js = 532.50 kB 532.50 kB = 94.85 kB 94.85 kB
facebook-www/ReactDOM-prod.modern.js = 516.42 kB 516.42 kB = 92.45 kB 92.45 kB

Significant size changes

Includes any change greater than 0.2%:

(No significant changes)

Generated by 🚫 dangerJS against 0cba581

@acdlite
Copy link
Collaborator Author

acdlite commented Mar 6, 2023

Merged in 1528c5c

@acdlite acdlite closed this Mar 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed React Core Team Opened by a member of the React Core Team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants