-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
Description
Cypress tests currently suppress React hydration errors as a workaround for a known Cypress issue. This should be revisited once the issue is resolved.
Code Location
packages/cypress/src/support/index.ts:8-9
Code Block
// Suppress React hydration errors in Cypress tests
// TODO: Revisit when Cypress fixes this known issue: https://github.com/cypress-io/cypress/issues/27204
Cypress.on('uncaught:exception', (err) => {
if (
err.message.includes('Hydration failed') ||
err.message.includes('Minified React error #418') ||
err.message.includes('Minified React error #423') ||
err.message.includes('Unknown root exit status')
) {
return false
}
return true
})References
- Cypress issue: Hydration errors in Cypress when using React 18, Next, and server components cypress-io/cypress#27204
Tasks
- Monitor the upstream Cypress issue
- Remove or update the workaround once the issue is fixed
- Update tests as needed
hieultnecvn
Metadata
Metadata
Assignees
Labels
No labels