wisemapping-frontend/packages/webapp/cypress/support/e2e.ts
2022-10-31 13:48:31 -07:00

14 lines
298 B
TypeScript

import './commands';
Cypress.on('window:before:load', (win) => {
cy.spy(win.console, 'error');
cy.spy(win.console, 'warn');
});
afterEach(() => {
cy.window().then((win) => {
expect(win.console.error).to.have.callCount(0);
// expect(win.console.warn).to.have.callCount(0);
});
});