mirror of
https://github.com/SigNoz/signoz.git
synced 2025-12-19 00:17:00 +00:00
12 lines
317 B
TypeScript
12 lines
317 B
TypeScript
const resizeObserverLoopErrRe = /ResizeObserver loop limit exceeded/;
|
|
|
|
const unCaughtExpection = (): void => {
|
|
cy.on('uncaught:exception', (err) => {
|
|
// returning false here prevents Cypress from
|
|
// failing the test
|
|
return !resizeObserverLoopErrRe.test(err.message);
|
|
});
|
|
};
|
|
|
|
export default unCaughtExpection;
|