Skip to content

Commit

Permalink
Add comment for uncaught:exception
Browse files Browse the repository at this point in the history
  • Loading branch information
jonfelixrico committed Apr 6, 2024
1 parent ae4f37b commit ee9fae0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client/cypress/support/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ Cypress.Commands.add(
}
)

/*
* This is needed to prevent Cypress from failing the test if uncaught exceptions are found, i.e.
* uncaught HTTP errors from API calls
*/
Cypress.on('uncaught:exception', () => {
return false
})
Expand Down

0 comments on commit ee9fae0

Please sign in to comment.