diff --git a/cypress/eslint.config.mjs b/cypress/eslint.config.mjs index 8d493cc3..4043230f 100644 --- a/cypress/eslint.config.mjs +++ b/cypress/eslint.config.mjs @@ -68,8 +68,8 @@ export default tseslint.config( { files: ['cypress/support/**/*.{js,ts}'], rules: { - // Allow console in support files for debugging - 'no-console': 'off' + // Enable console warnings in support files + 'no-console': 'warn' } }, diff --git a/cypress/support/e2e.ts b/cypress/support/e2e.ts index 40ebe86f..fc990283 100644 --- a/cypress/support/e2e.ts +++ b/cypress/support/e2e.ts @@ -7,8 +7,8 @@ import addContext from 'mochawesome/addContext' // Global exception handler Cypress.on('uncaught:exception', (err) => { + // eslint-disable-next-line no-console console.log('Uncaught exception:', err.message) - // returning false here prevents Cypress from failing the test return false })