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

14 lines
295 B
TypeScript
Raw Normal View History

import './commands';
2022-10-31 21:23:49 +01:00
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);
2022-11-03 05:06:29 +01:00
expect(win.console.warn).to.have.callCount(0);
2022-10-31 21:23:49 +01:00
});
});