mirror of
https://github.com/SigNoz/signoz.git
synced 2025-12-19 08:26:06 +00: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;
|