Skip to content

Commit a576840

Browse files
committed
chore: use testing-library dom events
1 parent 2c4389d commit a576840

3 files changed

Lines changed: 15 additions & 12 deletions

File tree

package.json

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,13 @@
5050
},
5151
"devDependencies": {
5252
"@ant-design/icons": "^6.2.5",
53+
"@babel/eslint-parser": "^7.29.7",
54+
"@babel/eslint-plugin": "^7.29.7",
55+
"@eslint/eslintrc": "^3.3.5",
56+
"@eslint/js": "^9.39.4",
5357
"@rc-component/father-plugin": "^2.2.0",
5458
"@rc-component/np": "^1.0.4",
59+
"@testing-library/dom": "^10.4.1",
5560
"@testing-library/jest-dom": "^6.9.1",
5661
"@testing-library/react": "^16.3.2",
5762
"@types/jest": "^30.0.0",
@@ -60,10 +65,15 @@
6065
"@types/react": "^19.2.17",
6166
"@types/react-dom": "^19.2.3",
6267
"@types/warning": "^3.0.4",
68+
"@typescript-eslint/eslint-plugin": "^8.62.0",
69+
"@typescript-eslint/parser": "^8.62.0",
6370
"antd": "^6.3.4",
6471
"dumi": "^2.4.35",
6572
"eslint": "^9.39.4",
73+
"eslint-config-prettier": "^10.1.8",
6674
"eslint-plugin-jest": "^29.15.3",
75+
"eslint-plugin-react": "^7.37.5",
76+
"eslint-plugin-react-hooks": "^7.1.1",
6777
"eslint-plugin-unicorn": "^65.0.1",
6878
"father": "^4.6.23",
6979
"glob": "^13.0.6",
@@ -76,16 +86,7 @@
7686
"react-dom": "^19.2.7",
7787
"stylelint": "^17.1.0",
7888
"stylelint-config-standard-less": "^4.0.0",
79-
"typescript": "^6.0.3",
80-
"@eslint/eslintrc": "^3.3.5",
81-
"@eslint/js": "^9.39.4",
82-
"eslint-plugin-react": "^7.37.5",
83-
"eslint-plugin-react-hooks": "^7.1.1",
84-
"eslint-config-prettier": "^10.1.8",
85-
"@babel/eslint-parser": "^7.29.7",
86-
"@babel/eslint-plugin": "^7.29.7",
87-
"@typescript-eslint/eslint-plugin": "^8.62.0",
88-
"@typescript-eslint/parser": "^8.62.0"
89+
"typescript": "^6.0.3"
8990
},
9091
"peerDependencies": {
9192
"react": ">=18.0.0",

tests/index.spec.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { cleanup, fireEvent, render, act } from '@testing-library/react';
1+
import { fireEvent } from '@testing-library/dom';
2+
import { cleanup, render, act } from '@testing-library/react';
23
import { resetWarned } from '@rc-component/util';
34
import React from 'react';
45
import type { DrawerProps } from '../src';

tests/motion.spec.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { render, fireEvent } from '@testing-library/react';
1+
import { fireEvent } from '@testing-library/dom';
2+
import { render } from '@testing-library/react';
23
import React from 'react';
34
import Drawer from '../src';
45

0 commit comments

Comments
 (0)