Skip to content

Commit

Permalink
fix some ts-expect-error comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ahkhanjani committed Nov 17, 2024
1 parent 639eedd commit 01517a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/react-resizable-panels/src/Panel.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 01517a6

Please sign in to comment.