diff --git a/package.json b/package.json
index d894a3ceb9..7286ca88a1 100644
--- a/package.json
+++ b/package.json
@@ -83,7 +83,6 @@
"react-dom": "18.3.1",
"react-live": "4.1.8",
"react-modal": "3.16.3",
- "react-test-renderer": "18.3.1",
"webpack": "5.97.1",
"webpack-cli": "5.1.4",
"webpack-dev-server": "5.2.0"
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 886889302e..1a9006a431 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -120,9 +120,6 @@ importers:
react-modal:
specifier: 3.16.3
version: 3.16.3(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
- react-test-renderer:
- specifier: 18.3.1
- version: 18.3.1(react@18.3.1)
webpack:
specifier: 5.97.1
version: 5.97.1(webpack-cli@5.1.4)
@@ -3651,16 +3648,6 @@ packages:
react: ^0.14.0 || ^15.0.0 || ^16 || ^17 || ^18 || ^19
react-dom: ^0.14.0 || ^15.0.0 || ^16 || ^17 || ^18 || ^19
- react-shallow-renderer@16.15.0:
- resolution: {integrity: sha512-oScf2FqQ9LFVQgA73vr86xl2NaOIX73rh+YFqcOp68CWj56tSfgtGKrEbyhCj0rSijyG9M1CYprTh39fBi5hzA==}
- peerDependencies:
- react: ^16.0.0 || ^17.0.0 || ^18.0.0
-
- react-test-renderer@18.3.1:
- resolution: {integrity: sha512-KkAgygexHUkQqtvvx/otwxtuFu5cVjfzTCtjXLH9boS19/Nbtg84zS7wIQn39G8IlrhThBpQsMKkq5ZHZIYFXA==}
- peerDependencies:
- react: ^18.3.1
-
react@18.3.1:
resolution: {integrity: sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==}
engines: {node: '>=0.10.0'}
@@ -8630,19 +8617,6 @@ snapshots:
react-lifecycles-compat: 3.0.4
warning: 4.0.3
- react-shallow-renderer@16.15.0(react@18.3.1):
- dependencies:
- object-assign: 4.1.1
- react: 18.3.1
- react-is: 18.3.1
-
- react-test-renderer@18.3.1(react@18.3.1):
- dependencies:
- react: 18.3.1
- react-is: 18.3.1
- react-shallow-renderer: 16.15.0(react@18.3.1)
- scheduler: 0.23.2
-
react@18.3.1:
dependencies:
loose-envify: 1.4.0
diff --git a/src/components/__tests__/Tab-test.js b/src/components/__tests__/Tab-test.js
index 6b3d00e6a8..bbf55c7c79 100644
--- a/src/components/__tests__/Tab-test.js
+++ b/src/components/__tests__/Tab-test.js
@@ -1,10 +1,11 @@
import React from 'react';
-import renderer from 'react-test-renderer';
+import { render } from '@testing-library/react';
import Tab from '../Tab';
import { TabWrapper } from './helpers/higherOrder';
function expectToMatchSnapshot(component) {
- expect(renderer.create(component).toJSON()).toMatchSnapshot();
+ const { container } = render(component);
+ expect(container.firstChild).toMatchSnapshot();
}
describe('