Skip to content

Commit 1a18e2f

Browse files
committed
Update SSR hydration error assertion for 19.2
1 parent 2404ae1 commit 1a18e2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/integration/ssr.spec.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ describe('New v8 serverState behavior', () => {
174174
expect(consoleErrorSpy).toHaveBeenCalledOnce()
175175

176176
expect(errorArg.message).toMatch(
177-
/Hydration failed because the server rendered HTML didn't match the client/,
177+
/Hydration failed because the server rendered (HTML|text) didn't match the client/,
178178
)
179179
} else if (IS_REACT_18) {
180180
expect(consoleErrorSpy).toHaveBeenCalledTimes(8)

0 commit comments

Comments
 (0)