From 01517a606f3fd018681b96b3b886cdee17dd7d94 Mon Sep 17 00:00:00 2001 From: "Amir H. Khanjani" <72540492+ahkhanjani@users.noreply.github.com> Date: Sun, 17 Nov 2024 17:59:41 +0330 Subject: [PATCH] fix some ts-expect-error comments --- packages/react-resizable-panels/src/Panel.test.tsx | 2 +- packages/react-resizable-panels/src/PanelResizeHandle.test.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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);