You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
415 B
20 lines
415 B
export function setup() { |
|
let windowErrorSpy; |
|
|
|
Cypress.on('window:before:load', (win) => { |
|
windowErrorSpy = cy.spy(win.console, 'error'); |
|
}); |
|
|
|
Cypress.on( |
|
'uncaught:exception', |
|
(err) => !err.message.includes('ResizeObserver loop limit exceeded') |
|
); |
|
|
|
describe('Listen for errors', () => { |
|
afterEach(() => { |
|
cy.wait(1000).then(() => { |
|
expect(windowErrorSpy).to.not.be.called; |
|
}); |
|
}); |
|
}); |
|
}
|
|
|