Skip to content

Commit 4dea5c3

Browse files
committed
chore(e2e): suppress uncaught:exception in Cypress
1 parent affeca3 commit 4dea5c3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/e2e/support.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,9 @@ type Chainables<T extends object> = {
2828
) => Cypress.Chainable<ReturnType<T[K]>>
2929
: never
3030
}
31+
32+
Cypress.on('uncaught:exception', (err, _runnable) => {
33+
// returning false here prevents Cypress from
34+
// failing the test
35+
return false
36+
})

0 commit comments

Comments
 (0)