Skip to content

Commit

Permalink
Merge pull request #221 from Tehsurfer/marker-clustering
Browse files Browse the repository at this point in the history
Catch exception from flatmap-viewer which is crashing the test
  • Loading branch information
Tehsurfer authored Jun 21, 2024
2 parents 02af45b + 05ce867 commit 9151565
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions cypress/support/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,13 @@ Cypress.Commands.add('mount', (component, options = {}) => {

return mount(component, options);
});

Cypress.on('uncaught:exception', (err, runnable) => {
// we expect a flatmap-viewer error with message ''Graph.addNode'
// and don't want to fail the test so we return false
if (err.message.includes('Graph.addNode')) {
return false
}
// we still want to ensure there are no other unexpected
// errors, so we let them fail the test
})

0 comments on commit 9151565

Please sign in to comment.