Skip to content

Commit a3870e7

Browse files
Chore update form snapshots test to use @testing-library/react (#4848)
* Chore update form snapshots test to use @testing-library/react In order to prep for React 19, began conversion from `react-test-renderer` to `@testing-library/react` for the `formTests.tsx` - Updated `snapshot-tests` to convert the `formTests.tsx` to use `@testing-library/react` - Updated all snapshots accordingly # Conflicts: # packages/antd/test/GridSnap.test.tsx # packages/mui/test/GridSnap.test.tsx * - Updated `package*.json` to remove `react-test-renderer`
1 parent d7f6e15 commit a3870e7

File tree

19 files changed

+91911
-143402
lines changed

19 files changed

+91911
-143402
lines changed

package-lock.json

Lines changed: 0 additions & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@
7979
"prettier": "^3.6.2",
8080
"react": "^18.3.1",
8181
"react-dom": "^18.3.1",
82-
"react-test-renderer": "^18.3.1",
8382
"rimraf": "^6.0.1",
8483
"rollup": "^4.52.5",
8584
"ts-jest": "^29.4.5",

packages/antd/test/Form.test.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@ import { render } from '@testing-library/react';
55

66
import '../__mocks__/matchMedia.mock';
77
import Form from '../src';
8-
import { FORM_RENDER_OPTIONS } from './snapshotConstants';
98

10-
formTests(Form, FORM_RENDER_OPTIONS);
9+
formTests(Form);
1110

1211
describe('antd specific tests', () => {
1312
test('descriptionLocation tooltip in formContext', () => {

packages/antd/test/__snapshots__/Form.test.tsx.snap

Lines changed: 10743 additions & 17258 deletions
Large diffs are not rendered by default.

packages/antd/test/snapshotConstants.ts

Lines changed: 0 additions & 15 deletions
This file was deleted.

packages/chakra-ui/test/__snapshots__/Form.test.tsx.snap

Lines changed: 3330 additions & 6022 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)