uncaught exception
I found below answer is solving the problem but as you know we no longer have support/index.js
file with Cypress version 10 and higher.
import './commands'
Cypress.on('uncaught:exception', (err, runnable) => {
// returning false here prevents Cypress from failing the test
return false
})
How can I use this block of code with Cypress version 10 and higher. Potentially in my cypress.config.js file to solve uncaught exception error?