import 'cypress-localstorage-commands' ; import './commands' ; const resizeObserverLoopErrRe = /^[^(ResizeObserver loop limit exceeded)]/ ; Cypress . on ( 'uncaught:exception' , ( err ) => { if ( resizeObserverLoopErrRe . test ( err . message ) ) { return false ; } } ) ;