Skip to content
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

[test] Make all tests runnable with React 17 #22290

Merged
merged 4 commits into from Aug 20, 2020

Conversation

eps1lon
Copy link
Member

@eps1lon eps1lon commented Aug 20, 2020

Codebase is now fully compatible with the current React 17 release candidate.

We need to wrap unmount actions in act due to React 17 lazily calling cleanup functions from effects. Otherwise these would be called in between tests making it incredibly hard to find out which test caused a possible error. Sometimes they would also not run at all (in JSDOM) leading intervals running forever and mocha not exiting. It's also safer to flush them in the test or hook so that tests are better isolated.

@eps1lon eps1lon added the test label Aug 20, 2020
@mui-pr-bot
Copy link

mui-pr-bot commented Aug 20, 2020

No bundle size changes comparing 0a84c37...e6378da

Generated by 🚫 dangerJS against e6378da

@eps1lon eps1lon merged commit 20bcdd8 into mui:next Aug 20, 2020
@eps1lon eps1lon deleted the test/fix-react-next branch August 20, 2020 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants