Skip to content

Commit

Permalink
workaround for uncaught error thrown in cypress tests quasarframework…
Browse files Browse the repository at this point in the history
  • Loading branch information
rwblair committed Jun 18, 2021
1 parent f2e3f82 commit 8dcedb3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions neuroscout/frontend/cypress/support/index.js
Expand Up @@ -18,3 +18,11 @@ import './commands'

// Alternatively you can use CommonJS syntax:
// require('./commands')

const resizeObserverLoopErrRe = /^[^(ResizeObserver loop limit exceeded)]/
Cypress.on('uncaught:exception', (err) => {
/* returning false here prevents Cypress from failing the test */
if (resizeObserverLoopErrRe.test(err.message)) {
return false
}
})

0 comments on commit 8dcedb3

Please sign in to comment.