Skip to content

Commit 12dbe90

Browse files
committed
chore: use testing-library dom events
1 parent e263a3f commit 12dbe90

2 files changed

Lines changed: 14 additions & 12 deletions

File tree

package.json

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -50,18 +50,29 @@
5050
"clsx": "^2.1.1"
5151
},
5252
"devDependencies": {
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",
5863
"@types/node": "^26.0.1",
5964
"@types/react": "^19.2.17",
6065
"@types/react-dom": "^19.2.3",
66+
"@typescript-eslint/eslint-plugin": "^8.62.0",
67+
"@typescript-eslint/parser": "^8.62.0",
6168
"@umijs/fabric": "^4.0.1",
69+
"cross-env": "^10.1.0",
6270
"dumi": "^2.4.35",
6371
"eslint": "^9.39.4",
72+
"eslint-config-prettier": "^10.1.8",
6473
"eslint-plugin-jest": "^29.15.3",
74+
"eslint-plugin-react": "^7.37.5",
75+
"eslint-plugin-react-hooks": "^7.1.1",
6576
"eslint-plugin-unicorn": "^65.0.1",
6677
"father": "^4.6.23",
6778
"gh-pages": "^6.3.0",
@@ -73,17 +84,7 @@
7384
"rc-test": "^7.1.3",
7485
"react": "^19.2.7",
7586
"react-dom": "^19.2.7",
76-
"typescript": "^6.0.3",
77-
"cross-env": "^10.1.0",
78-
"@eslint/eslintrc": "^3.3.5",
79-
"@eslint/js": "^9.39.4",
80-
"eslint-plugin-react": "^7.37.5",
81-
"eslint-plugin-react-hooks": "^7.1.1",
82-
"eslint-config-prettier": "^10.1.8",
83-
"@babel/eslint-parser": "^7.29.7",
84-
"@babel/eslint-plugin": "^7.29.7",
85-
"@typescript-eslint/eslint-plugin": "^8.62.0",
86-
"@typescript-eslint/parser": "^8.62.0"
87+
"typescript": "^6.0.3"
8788
},
8889
"peerDependencies": {
8990
"react": ">=16.9.0",

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

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

0 commit comments

Comments
 (0)