fix uncaughexception in tests

This commit is contained in:
Sidharth Vinod
2023-03-30 23:28:41 +05:30
parent 46ab6f46f2
commit 7739302ee8
2 changed files with 11 additions and 4 deletions

View File

@@ -1,6 +1,15 @@
import { imgSnapshotTest } from '../../helpers/util';
describe('Error Diagrams', () => {
beforeEach(() => {
cy.on('uncaught:exception', (err) => {
expect(err.message).to.include('Parse error');
// return false to prevent the error from
// failing this test
return false;
});
});
it('should render a simple ER diagram', () => {
imgSnapshotTest(
`