fix(test): add ResizeObserver polyfill and fix WebDAV accordion target in settings test

This commit is contained in:
Jason
2026-02-24 21:44:03 +08:00
parent b98c3ddb29
commit e516f83c19
2 changed files with 11 additions and 1 deletions
+9
View File
@@ -1,3 +1,12 @@
// Polyfill ResizeObserver for jsdom/happy-dom
if (typeof globalThis.ResizeObserver === "undefined") {
globalThis.ResizeObserver = class ResizeObserver {
observe() {}
unobserve() {}
disconnect() {}
} as unknown as typeof globalThis.ResizeObserver;
}
const storage = new Map<string, string>();
if (