Skip to content

Commit

Permalink
test: ignore ValiError
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Kwong committed Feb 14, 2024
1 parent 6239cce commit 246a65f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions cypress/support/e2e.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { ValiError } from 'valibot';

// ***********************************************************
// This example support/e2e.ts is processed and
// loaded automatically before your test files.
Expand All @@ -18,3 +20,10 @@ import './commands';

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

Cypress.on('uncaught:exception', (err) => {
// FIXME: This error is some times thrown when testing in webkit browser for unknown reasons
if (err instanceof ValiError) {
return false;
}
});

0 comments on commit 246a65f

Please sign in to comment.