diff --git a/packages/react-dom/src/__tests__/ReactDOMHydrationDiff-test.js b/packages/react-dom/src/__tests__/ReactDOMHydrationDiff-test.js index 3e8af9cb29392..165ce776fb713 100644 --- a/packages/react-dom/src/__tests__/ReactDOMHydrationDiff-test.js +++ b/packages/react-dom/src/__tests__/ReactDOMHydrationDiff-test.js @@ -259,7 +259,12 @@ describe('ReactDOMServerHydration', () => { } expect(testMismatch(Mismatch)).toMatchInlineSnapshot(` Array [ - "Warning: Expected server HTML to contain a matching
in
. + "Warning: The content rendered by the server and the client did not match because the client has rendered an extra element. The mismatch occurred inside of this parent: + +
+ +
<-- client + +
in main (at **) in div (at **) in Mismatch (at **)", @@ -283,7 +288,13 @@ describe('ReactDOMServerHydration', () => { } expect(testMismatch(Mismatch)).toMatchInlineSnapshot(` Array [ - "Warning: Expected server HTML to contain a matching
in
. + "Warning: The content rendered by the server and the client did not match because the client has rendered an extra element. The mismatch occurred inside of this parent: + +
+ -
<-- server + +
<-- client + ... +
in header (at **) in div (at **) in Mismatch (at **)", @@ -307,7 +318,14 @@ describe('ReactDOMServerHydration', () => { } expect(testMismatch(Mismatch)).toMatchInlineSnapshot(` Array [ - "Warning: Expected server HTML to contain a matching
in
. + "Warning: The content rendered by the server and the client did not match because the client has rendered an extra element. The mismatch occurred inside of this parent: + +
+
+ -
<-- server + +
<-- client + ... +
in main (at **) in div (at **) in Mismatch (at **)", @@ -331,7 +349,14 @@ describe('ReactDOMServerHydration', () => { } expect(testMismatch(Mismatch)).toMatchInlineSnapshot(` Array [ - "Warning: Expected server HTML to contain a matching