mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2026-04-03 16:15:28 +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}'],
|
files: ['cypress/support/**/*.{js,ts}'],
|
||||||
rules: {
|
rules: {
|
||||||
// Allow console in support files for debugging
|
// Enable console warnings in support files
|
||||||
'no-console': 'off'
|
'no-console': 'warn'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@ -7,8 +7,8 @@ import addContext from 'mochawesome/addContext'
|
|||||||
|
|
||||||
// Global exception handler
|
// Global exception handler
|
||||||
Cypress.on('uncaught:exception', (err) => {
|
Cypress.on('uncaught:exception', (err) => {
|
||||||
|
// eslint-disable-next-line no-console
|
||||||
console.log('Uncaught exception:', err.message)
|
console.log('Uncaught exception:', err.message)
|
||||||
// returning false here prevents Cypress from failing the test
|
|
||||||
return false
|
return false
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user