Skip to content

Commit 6ed1e21

Browse files
committed
Update warning messages
1 parent 70e2680 commit 6ed1e21

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
@@ -576,7 +576,7 @@ describe('Error overlay for hydration errors', () => {
576576

577577
const warning = await session.getRedboxDescriptionWarning()
578578
expect(warning).toContain(
579-
'In HTML, <script> cannot be a child of <html>.\nThis will cause a hydration error.'
579+
'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.'
580580
)
581581

582582
await cleanup()

0 commit comments

Comments
 (0)