fix: use globalThis instead of global in test setup (TS build compatibility)

This commit is contained in:
lucaronin
2026-03-02 12:02:24 +01:00
parent bfd871704d
commit 677585f3f0

View File

@@ -6,7 +6,7 @@ import { createElement, type ReactNode, type ComponentType } from 'react'
Element.prototype.scrollIntoView = vi.fn()
// Mock ResizeObserver for jsdom (not implemented)
global.ResizeObserver = class {
globalThis.ResizeObserver = class {
observe() {}
unobserve() {}
disconnect() {}