14 lines
313 B
JavaScript
Raw Normal View History

import './commands';
2022-11-30 22:12:40 -08:00
Cypress.on('window:before:load', (win) => {
cy.spy(win.console, 'error');
cy.spy(win.console, 'warn');
});
2022-12-04 22:03:55 -08:00
// afterEach(() => {
// cy.window().then((win) => {
// expect(win.console.error).to.have.callCount(0);
// expect(win.console.warn).to.have.callCount(0);
// });
2022-11-30 22:12:40 -08:00
// });