mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2026-03-01 12:44:17 +00:00
change linting rulefor cypress/support/
This commit is contained in:
parent
27fa9c8e80
commit
71273cc3dc
@ -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'
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
@ -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
|
||||
})
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user