INNER CODE UNIT · TypeScript
handleExceptions
odigos-io/odigos · frontend/webapp/cypress/functions/index.ts:329
export const handleExceptions = () => {
return cy.on('uncaught:exception', (err, runnable) => {
if (err.message.includes('ResizeObserver loop completed with undelivered notifications')) {
// returning false here prevents Cypress from failing the test
return false;
}
// we still want to ensure there are no other unexpected errors, so we let them fail the test
});
};