Skip to content

Commit a99e55b

Browse files
committed
chore: use testing-library dom events
1 parent 8a1238b commit a99e55b

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
@@ -53,43 +53,44 @@
5353
"@rc-component/motion": "^1.1.4"
5454
},
5555
"devDependencies": {
56+
"@babel/eslint-parser": "^7.29.7",
57+
"@babel/eslint-plugin": "^7.29.7",
58+
"@eslint/eslintrc": "^3.3.5",
59+
"@eslint/js": "^9.39.4",
5660
"@rc-component/father-plugin": "^2.2.0",
5761
"@rc-component/np": "^1.0.4",
62+
"@testing-library/dom": "^10.4.1",
5863
"@testing-library/jest-dom": "^6.9.1",
5964
"@testing-library/react": "^16.3.2",
6065
"@testing-library/user-event": "^14.6.1",
6166
"@types/jest": "^30.0.0",
6267
"@types/node": "^26.0.1",
6368
"@types/react": "^19.2.17",
6469
"@types/react-dom": "^19.2.3",
70+
"@typescript-eslint/eslint-plugin": "^8.62.0",
71+
"@typescript-eslint/parser": "^8.62.0",
6572
"@umijs/fabric": "^4.0.1",
6673
"@umijs/test": "^4.6.68",
6774
"cross-env": "^10.1.0",
6875
"dumi": "^2.4.35",
6976
"eslint": "^9.39.4",
77+
"eslint-config-prettier": "^10.1.8",
78+
"eslint-plugin-jest": "^29.15.3",
79+
"eslint-plugin-react": "^7.37.5",
80+
"eslint-plugin-react-hooks": "^7.1.1",
81+
"eslint-plugin-unicorn": "^65.0.1",
7082
"father": "^4.6.23",
7183
"gh-pages": "^6.3.0",
7284
"husky": "^9.1.7",
7385
"jest": "^29.7.0",
7486
"jest-environment-jsdom": "^29.7.0",
7587
"less": "^4.6.7",
88+
"lint-staged": "^17.0.8",
7689
"prettier": "^3.9.0",
7790
"react": "^19.2.7",
7891
"react-dom": "^19.2.7",
7992
"ts-node": "^10.9.1",
80-
"typescript": "^6.0.3",
81-
"lint-staged": "^17.0.8",
82-
"@eslint/eslintrc": "^3.3.5",
83-
"@eslint/js": "^9.39.4",
84-
"eslint-plugin-react": "^7.37.5",
85-
"eslint-plugin-react-hooks": "^7.1.1",
86-
"eslint-config-prettier": "^10.1.8",
87-
"@babel/eslint-parser": "^7.29.7",
88-
"@babel/eslint-plugin": "^7.29.7",
89-
"@typescript-eslint/eslint-plugin": "^8.62.0",
90-
"@typescript-eslint/parser": "^8.62.0",
91-
"eslint-plugin-jest": "^29.15.3",
92-
"eslint-plugin-unicorn": "^65.0.1"
93+
"typescript": "^6.0.3"
9394
},
9495
"peerDependencies": {
9596
"react": ">=16.0.0",

tests/index.test.tsx

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

0 commit comments

Comments
 (0)