revert react version upgrade

Signed-off-by: aramissennyeydd <aramis.sennyey@doordash.com>
This commit is contained in:
aramissennyeydd
2024-06-19 11:50:54 -04:00
parent a99bf141a0
commit c781772b0a
@@ -77,10 +77,6 @@ describe('<ErrorBoundary/>', () => {
/^The above error occurred in the <Bomb> 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);
});