-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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] Update react next patch #21746
Conversation
diff --git a/packages/material-ui/src/Unstable_TrapFocus/Unstable_TrapFocus.js b/packages/material-ui/src/Unstable_TrapFocus/Unstable_TrapFocus.js | ||
index 97fac726d..e43c9f5d4 100644 | ||
--- a/packages/material-ui/src/Unstable_TrapFocus/Unstable_TrapFocus.js | ||
+++ b/packages/material-ui/src/Unstable_TrapFocus/Unstable_TrapFocus.js |
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.
Can't come up with a reliable isolated test for this change so this stays strictly in this patch for now. There's definitely an issue with testing-library (we probably need to use a fork of cleanup
because the new one is not explained and targetted at jest) and likely an issue with JSDOM.
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.
Also very likely that there's an issue on our end. In the end we're reaching into a lot of internals.
No bundle size changes comparing 44f00aa...83ab6f6 |
c6f0963
to
811d5ae
Compare
811d5ae
to
dcbf778
Compare
a77f146
to
12280e6
Compare
12280e6
to
83ab6f6
Compare
Does not fix test failures yet. Will look into that later.
Forward ports
react-next.diff
which requires@testing-library/react@^10.4.7
(specifically testing-library/react-testing-library#746).How to:
git checkout -b test/update-react-next-patch
git apply scripts/react-next.diff
next
:git rebase next
git diff HEAD^! > rext-next.new.diff
scripts/react-next.diff
withrext-next.new.diff
This only explains how to forward port. For fixing tests on
react@next
useREACT_DIST_TAG=next node scripts/use-react-dist-tag.js
and start fixing failures.