From 71273cc3dcecc41fb3adae010d46cafa3339fe4d Mon Sep 17 00:00:00 2001 From: mahula Date: Wed, 8 Oct 2025 11:44:42 +0200 Subject: [PATCH] change linting rulefor cypress/support/ --- cypress/eslint.config.mjs | 4 ++-- cypress/support/e2e.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 })