mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-07-29 18:21:58 +08: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;
|