-
Notifications
You must be signed in to change notification settings - Fork 47.2k
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 suite for hydration diff warnings #24229
Conversation
in Mismatch (at **)", | ||
"Warning: An error occurred during hydration. The server HTML was replaced with client content in <div>.", | ||
"Caught [Hydration failed because the initial UI does not match what was rendered on the server.]", | ||
"Caught [Hydration failed because the initial UI does not match what was rendered on the server.]", |
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.
Curious that this error shows up twice.
Comparing: b76103d...d55ca42 Critical size changesIncludes critical production bundles, as well as any change greater than 2%:
Significant size changesIncludes any change greater than 0.2%: (No significant changes) |
Hmm apparently snapshot tests don't work with our "expect to fail" thing... |
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.
Gmail
* Test suite for hydration diff warnings * Test both variants * Add more edge cases
* Test suite for hydration diff warnings * Test both variants * Add more edge cases
* Test suite for hydration diff warnings * Test both variants * Add more edge cases
* Test suite for hydration diff warnings * Test both variants * Add more edge cases
In preparation for #24167.
If we're doing something more ambitious like #24167 (comment) I want to have good coverage of different cases and make sure the right thing is being printed. There are existing tests in different places but I want to have an exhaustive suite dedicated just to this, and ideally it should be easy to iterate on. So I made these inline snapshots.
This just documents the current behavior. Follow-up will change the messages.