mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-07-31 02:32:00 +08:00
15 lines
347 B
TypeScript
15 lines
347 B
TypeScript
const resizeObserverLoopErrRe = /ResizeObserver loop limit exceeded/;
|
|
|
|
const unCaughtExpection = () => {
|
|
cy.on('uncaught:exception', (err) => {
|
|
if (resizeObserverLoopErrRe.test(err.message)) {
|
|
// returning false here prevents Cypress from
|
|
// failing the test
|
|
return false;
|
|
}
|
|
return true;
|
|
});
|
|
};
|
|
|
|
export default unCaughtExpection;
|