From 23e52d0820e610659a5943a8edd0d02824aeb055 Mon Sep 17 00:00:00 2001 From: Gregory Douglas Date: Mon, 13 Jan 2025 09:33:04 -0500 Subject: [PATCH 1/2] Ignore deprecated ReactDOM methods in test code --- packages/core/test/context-menu/contextMenuTests.tsx | 1 + packages/core/test/forms/textAreaTests.tsx | 1 + packages/core/test/slider/multiSliderTests.tsx | 1 + packages/core/test/toast/overlayToasterTests.tsx | 1 + packages/core/test/toast/toasterTests.tsx | 1 + packages/core/test/tree/treeTests.tsx | 1 + packages/datetime/test/components/dateRangeInputTests.tsx | 1 + packages/datetime/test/components/timePickerTests.tsx | 2 ++ packages/datetime2/test/components/dateRangeInput3Tests.tsx | 1 + packages/table/test/common/internal/scrollUtilsTests.tsx | 1 + packages/table/test/harness.ts | 2 ++ packages/table/test/locatorTests.tsx | 2 ++ packages/table/test/quadrants/tableQuadrantStackTests.tsx | 2 ++ packages/table/test/table2Tests.tsx | 2 ++ 14 files changed, 19 insertions(+) diff --git a/packages/core/test/context-menu/contextMenuTests.tsx b/packages/core/test/context-menu/contextMenuTests.tsx index 4ab27ff12e..03c73e9b4b 100644 --- a/packages/core/test/context-menu/contextMenuTests.tsx +++ b/packages/core/test/context-menu/contextMenuTests.tsx @@ -61,6 +61,7 @@ describe("ContextMenu", () => { document.body.appendChild(containerElement); }); afterEach(() => { + // eslint-disable-next-line deprecation/deprecation ReactDOM.unmountComponentAtNode(containerElement!); containerElement!.remove(); }); diff --git a/packages/core/test/forms/textAreaTests.tsx b/packages/core/test/forms/textAreaTests.tsx index 851a923103..e933eb315b 100644 --- a/packages/core/test/forms/textAreaTests.tsx +++ b/packages/core/test/forms/textAreaTests.tsx @@ -31,6 +31,7 @@ describe("