wisemapping-frontend/packages/editor/cypress/support/e2e.ts

14 lines
295 B
TypeScript
Raw Normal View History

2023-01-08 07:27:01 +01:00
import './commands';
Cypress.on('window:before:load', (win) => {
cy.spy(win.console, 'error');
cy.spy(win.console, 'warn');
});
2023-01-15 08:04:33 +01:00
afterEach(() => {
cy.window().then((win) => {
expect(win.console.error).to.have.callCount(0);
expect(win.console.warn).to.have.callCount(0);
});
});