1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-10-18 11:14:57 +02:00

test: fix failing test

This commit is contained in:
Nuno Góis 2024-10-18 14:05:48 +01:00
parent c825c58db8
commit ef32f39f7c
No known key found for this signature in database
GPG Key ID: 71ECC689F1091765

View File

@ -9,10 +9,27 @@ class ResizeObserver {
disconnect() {}
}
class IntersectionObserver {
root: any;
rootMargin: any;
thresholds: any;
observe() {}
unobserve() {}
disconnect() {}
takeRecords() {
return [];
}
}
if (!window.ResizeObserver) {
window.ResizeObserver = ResizeObserver;
}
if (!window.IntersectionObserver) {
window.IntersectionObserver = IntersectionObserver;
}
process.env.TZ = 'UTC';
const errorsToIgnore = [