Skip to content

Commit 7f69424

Browse files
committed
update test to handle new template emission
1 parent ad431e9 commit 7f69424

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/react-dom/src/__tests__/ReactDOMHydrationDiff-test.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -727,9 +727,13 @@ describe('ReactDOMServerHydration', () => {
727727
</div>
728728
);
729729
}
730+
// @TODO changes made to sending Fizz errors to client led to the insertion of templates in client rendered
731+
// suspense boundaries. This leaks in this test becuase the client rendered suspense boundary appears like
732+
// unhydrated tail nodes and this template is the first match. When we add special case handling for client
733+
// rendered suspense boundaries this test will likely change again
730734
expect(testMismatch(Mismatch)).toMatchInlineSnapshot(`
731735
Array [
732-
"Warning: Did not expect server HTML to contain a <p> in <div>.
736+
"Warning: Did not expect server HTML to contain a <template> in <div>.
733737
in div (at **)
734738
in Mismatch (at **)",
735739
"Warning: An error occurred during hydration. The server HTML was replaced with client content in <div>.",

0 commit comments

Comments
 (0)