diff --git a/packages/react-resizable-panels/src/Panel.test.tsx b/packages/react-resizable-panels/src/Panel.test.tsx index b873d870..bc4aabe8 100644 --- a/packages/react-resizable-panels/src/Panel.test.tsx +++ b/packages/react-resizable-panels/src/Panel.test.tsx @@ -21,7 +21,7 @@ describe("PanelGroup", () => { } beforeEach(() => { - // @ts-expect-error No type definitions for global + // @ts-expect-error global.IS_REACT_ACT_ENVIRONMENT is not typed global.IS_REACT_ACT_ENVIRONMENT = true; uninstallMockOffsetWidthAndHeight = mockPanelGroupOffsetWidthAndHeight(); diff --git a/packages/react-resizable-panels/src/PanelResizeHandle.test.tsx b/packages/react-resizable-panels/src/PanelResizeHandle.test.tsx index ec613f80..a9c4c2c3 100644 --- a/packages/react-resizable-panels/src/PanelResizeHandle.test.tsx +++ b/packages/react-resizable-panels/src/PanelResizeHandle.test.tsx @@ -27,7 +27,7 @@ describe("PanelResizeHandle", () => { let container: HTMLElement; beforeEach(() => { - // @ts-expect-error globalThis is not typed + // @ts-expect-error global.IS_REACT_ACT_ENVIRONMENT is not typed global.IS_REACT_ACT_ENVIRONMENT = true; container = document.createElement("div"); document.body.appendChild(container);