From c781772b0a6b3b3bb1a7a8575d03eefcf4fff2e2 Mon Sep 17 00:00:00 2001 From: aramissennyeydd Date: Wed, 19 Jun 2024 11:50:54 -0400 Subject: [PATCH] revert react version upgrade Signed-off-by: aramissennyeydd --- .../src/layout/ErrorBoundary/ErrorBoundary.test.tsx | 4 ---- 1 file changed, 4 deletions(-) diff --git a/packages/core-components/src/layout/ErrorBoundary/ErrorBoundary.test.tsx b/packages/core-components/src/layout/ErrorBoundary/ErrorBoundary.test.tsx index 72b8e4dc95..99419a9109 100644 --- a/packages/core-components/src/layout/ErrorBoundary/ErrorBoundary.test.tsx +++ b/packages/core-components/src/layout/ErrorBoundary/ErrorBoundary.test.tsx @@ -77,10 +77,6 @@ describe('', () => { /^The above error occurred in the component:/, ), expect.stringMatching(/^ErrorBoundary/), - // React 18.3.0 added error messages for findDOMNode deprecation, https://github.com/facebook/react/commit/c3b283964108b0e8dbcf1f9eb2e7e67815e39dfb. - expect.stringContaining( - 'Warning: findDOMNode is deprecated and will be removed in the next major release. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node%s', - ), ]); expect(error.length).toEqual(5); });