Skip to content

Commit f04b33d

Browse files
committed
fix hydration-error assertion
1 parent 50badce commit f04b33d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/development/acceptance-app/hydration-error.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ describe('Error overlay for hydration errors', () => {
575575

576576
const warning = await session.getRedboxDescriptionWarning()
577577
expect(warning).toContain(
578-
'In HTML, <script> cannot be a child of <html>.\nThis will cause a hydration error.'
578+
`Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async=\"\" or moving it into the root <head> tag.`
579579
)
580580

581581
await cleanup()

0 commit comments

Comments
 (0)