Skip to content

Commit 2c15b07

Browse files
committed
chore: use testing-library dom events
1 parent 09c0345 commit 2c15b07

2 files changed

Lines changed: 13 additions & 11 deletions

File tree

package.json

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -52,18 +52,28 @@
5252
"clsx": "^2.1.1"
5353
},
5454
"devDependencies": {
55+
"@babel/eslint-parser": "^7.29.7",
56+
"@babel/eslint-plugin": "^7.29.7",
57+
"@eslint/eslintrc": "^3.3.5",
58+
"@eslint/js": "^9.39.4",
5559
"@rc-component/father-plugin": "^2.2.0",
5660
"@rc-component/np": "^1.0.4",
61+
"@testing-library/dom": "^10.4.1",
5762
"@testing-library/jest-dom": "^6.9.1",
5863
"@testing-library/react": "^16.3.2",
5964
"@types/jest": "^30.0.0",
6065
"@types/node": "^26.0.1",
6166
"@types/react": "^19.2.17",
6267
"@types/react-dom": "^19.2.3",
68+
"@typescript-eslint/eslint-plugin": "^8.62.0",
69+
"@typescript-eslint/parser": "^8.62.0",
6370
"@umijs/fabric": "^4.0.1",
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
"gh-pages": "^6.3.0",
@@ -75,16 +85,7 @@
7585
"rc-test": "^7.1.3",
7686
"react": "^19.2.7",
7787
"react-dom": "^19.2.7",
78-
"typescript": "^6.0.3",
79-
"@eslint/eslintrc": "^3.3.5",
80-
"@eslint/js": "^9.39.4",
81-
"eslint-plugin-react": "^7.37.5",
82-
"eslint-plugin-react-hooks": "^7.1.1",
83-
"eslint-config-prettier": "^10.1.8",
84-
"@babel/eslint-parser": "^7.29.7",
85-
"@babel/eslint-plugin": "^7.29.7",
86-
"@typescript-eslint/eslint-plugin": "^8.62.0",
87-
"@typescript-eslint/parser": "^8.62.0"
88+
"typescript": "^6.0.3"
8889
},
8990
"peerDependencies": {
9091
"react": ">=18.0.0",

tests/index.spec.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
import { fireEvent } from '@testing-library/dom';
12
import type { RenderResult } from '@testing-library/react';
2-
import { fireEvent, render } from '@testing-library/react';
3+
import { render } from '@testing-library/react';
34
import { KeyCode } from '@rc-component/util';
45
import React, { Fragment } from 'react';
56
import Collapse, { Panel } from '../src/index';

0 commit comments

Comments
 (0)