Skip to content

Commit 3efcf43

Browse files
committed
chore: use testing-library dom events
1 parent 3cd96eb commit 3efcf43

2 files changed

Lines changed: 16 additions & 14 deletions

File tree

package.json

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -44,40 +44,41 @@
4444
"clsx": "^2.1.1"
4545
},
4646
"devDependencies": {
47+
"@babel/eslint-parser": "^7.29.7",
48+
"@babel/eslint-plugin": "^7.29.7",
49+
"@eslint/eslintrc": "^3.3.5",
50+
"@eslint/js": "^9.39.4",
4751
"@rc-component/father-plugin": "^2.2.0",
4852
"@rc-component/np": "^1.0.4",
53+
"@testing-library/dom": "^10.4.1",
54+
"@testing-library/jest-dom": "^6.9.1",
4955
"@testing-library/react": "^16.3.2",
5056
"@types/jest": "^30.0.0",
5157
"@types/keyv": "^4.2.0",
5258
"@types/node": "^26.0.1",
5359
"@types/react": "^19.2.17",
5460
"@types/react-dom": "^19.2.3",
61+
"@typescript-eslint/eslint-plugin": "^8.62.0",
62+
"@typescript-eslint/parser": "^8.62.0",
5563
"@umijs/fabric": "^4.0.1",
5664
"cross-env": "^10.1.0",
5765
"dumi": "^2.4.35",
5866
"eslint": "^9.39.4",
67+
"eslint-config-prettier": "^10.1.8",
5968
"eslint-plugin-jest": "^29.15.3",
69+
"eslint-plugin-react": "^7.37.5",
70+
"eslint-plugin-react-hooks": "^7.1.1",
6071
"eslint-plugin-unicorn": "^65.0.1",
6172
"father": "^4.6.23",
6273
"gh-pages": "^6.3.0",
6374
"glob": "^13.0.6",
75+
"husky": "^9.1.7",
76+
"lint-staged": "^17.0.8",
6477
"prettier": "^3.9.0",
6578
"rc-test": "^7.1.3",
6679
"react": "^19.2.7",
6780
"react-dom": "^19.2.7",
68-
"typescript": "^6.0.3",
69-
"husky": "^9.1.7",
70-
"lint-staged": "^17.0.8",
71-
"@eslint/eslintrc": "^3.3.5",
72-
"@eslint/js": "^9.39.4",
73-
"eslint-plugin-react": "^7.37.5",
74-
"eslint-plugin-react-hooks": "^7.1.1",
75-
"eslint-config-prettier": "^10.1.8",
76-
"@babel/eslint-parser": "^7.29.7",
77-
"@babel/eslint-plugin": "^7.29.7",
78-
"@typescript-eslint/eslint-plugin": "^8.62.0",
79-
"@typescript-eslint/parser": "^8.62.0",
80-
"@testing-library/jest-dom": "^6.9.1"
81+
"typescript": "^6.0.3"
8182
},
8283
"peerDependencies": {
8384
"react": ">=16.9.0",

tests/index.spec.js

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 React from 'react';
2-
import { render, act, fireEvent } from '@testing-library/react';
3+
import { render, act } from '@testing-library/react';
34
import { Circle, Line } from '../src';
45

56
describe('Progress', () => {

0 commit comments

Comments
 (0)