Skip to content

Commit 22c27b3

Browse files
committed
chore: use testing-library dom events
1 parent 4d81f30 commit 22c27b3

2 files changed

Lines changed: 19 additions & 17 deletions

File tree

package.json

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -45,40 +45,41 @@
4545
"clsx": "^2.1.1"
4646
},
4747
"devDependencies": {
48+
"@babel/eslint-parser": "^7.29.7",
49+
"@babel/eslint-plugin": "^7.29.7",
50+
"@eslint/eslintrc": "^3.3.5",
51+
"@eslint/js": "^9.39.4",
4852
"@rc-component/father-plugin": "^2.2.0",
49-
"prettier": "^3.9.0",
5053
"@rc-component/np": "^1.0.4",
5154
"@rc-component/tooltip": "^1.2.1",
55+
"@testing-library/dom": "^10.4.1",
56+
"@testing-library/jest-dom": "^6.9.1",
5257
"@testing-library/react": "^16.3.2",
5358
"@types/jest": "^30.0.0",
5459
"@types/node": "^26.0.1",
5560
"@types/react": "^19.2.17",
5661
"@types/react-dom": "^19.2.3",
62+
"@typescript-eslint/eslint-plugin": "^8.62.0",
63+
"@typescript-eslint/parser": "^8.62.0",
5764
"@umijs/fabric": "^4.0.1",
5865
"cross-env": "^10.1.0",
5966
"dumi": "^2.4.35",
6067
"eslint": "^9.39.4",
68+
"eslint-config-prettier": "^10.1.8",
69+
"eslint-plugin-jest": "^29.15.3",
70+
"eslint-plugin-react": "^7.37.5",
71+
"eslint-plugin-react-hooks": "^7.1.1",
72+
"eslint-plugin-unicorn": "^65.0.1",
6173
"father": "^4.6.23",
6274
"gh-pages": "^6.3.0",
75+
"husky": "^9.1.7",
6376
"less": "^4.6.7",
77+
"lint-staged": "^17.0.8",
78+
"prettier": "^3.9.0",
6479
"rc-test": "^7.1.3",
6580
"react": "^19.2.7",
6681
"react-dom": "^19.2.7",
67-
"typescript": "^6.0.3",
68-
"husky": "^9.1.7",
69-
"lint-staged": "^17.0.8",
70-
"@eslint/eslintrc": "^3.3.5",
71-
"@eslint/js": "^9.39.4",
72-
"eslint-plugin-react": "^7.37.5",
73-
"eslint-plugin-react-hooks": "^7.1.1",
74-
"eslint-config-prettier": "^10.1.8",
75-
"@babel/eslint-parser": "^7.29.7",
76-
"@babel/eslint-plugin": "^7.29.7",
77-
"@typescript-eslint/eslint-plugin": "^8.62.0",
78-
"@typescript-eslint/parser": "^8.62.0",
79-
"@testing-library/jest-dom": "^6.9.1",
80-
"eslint-plugin-jest": "^29.15.3",
81-
"eslint-plugin-unicorn": "^65.0.1"
82+
"typescript": "^6.0.3"
8283
},
8384
"peerDependencies": {
8485
"react": ">=16.9.0",

tests/simple.spec.js

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

0 commit comments

Comments
 (0)