Skip to content

Commit 8aa9e09

Browse files
committed
chore: use testing-library dom events
1 parent 31bb6ec commit 8aa9e09

2 files changed

Lines changed: 15 additions & 13 deletions

File tree

package.json

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -46,40 +46,41 @@
4646
"@rc-component/util": "^1.11.1"
4747
},
4848
"devDependencies": {
49+
"@babel/eslint-parser": "^7.29.7",
50+
"@babel/eslint-plugin": "^7.29.7",
51+
"@eslint/eslintrc": "^3.3.5",
52+
"@eslint/js": "^9.39.4",
4953
"@rc-component/father-plugin": "^2.2.0",
5054
"@rc-component/np": "^1.0.4",
55+
"@testing-library/dom": "^10.4.1",
5156
"@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
"cheerio": "1.0.0-rc.12",
5966
"cross-env": "^10.1.0",
6067
"dumi": "^2.4.35",
6168
"eslint": "^9.39.4",
69+
"eslint-config-prettier": "^10.1.8",
6270
"eslint-plugin-jest": "^29.15.3",
71+
"eslint-plugin-react": "^7.37.5",
72+
"eslint-plugin-react-hooks": "^7.1.1",
6373
"eslint-plugin-unicorn": "^65.0.1",
6474
"father": "^4.6.23",
6575
"gh-pages": "^6.3.0",
6676
"glob": "^13.0.6",
77+
"husky": "^9.1.7",
78+
"lint-staged": "^17.0.8",
6779
"prettier": "^3.9.0",
6880
"rc-test": "^7.1.3",
6981
"react": "^19.2.7",
7082
"react-dom": "^19.2.7",
71-
"typescript": "^6.0.3",
72-
"husky": "^9.1.7",
73-
"lint-staged": "^17.0.8",
74-
"@eslint/eslintrc": "^3.3.5",
75-
"@eslint/js": "^9.39.4",
76-
"eslint-plugin-react": "^7.37.5",
77-
"eslint-plugin-react-hooks": "^7.1.1",
78-
"eslint-config-prettier": "^10.1.8",
79-
"@babel/eslint-parser": "^7.29.7",
80-
"@babel/eslint-plugin": "^7.29.7",
81-
"@typescript-eslint/eslint-plugin": "^8.62.0",
82-
"@typescript-eslint/parser": "^8.62.0"
83+
"typescript": "^6.0.3"
8384
},
8485
"peerDependencies": {
8586
"react": ">=16.9.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 { fireEvent, render, waitFor } from '@testing-library/react';
1+
import { fireEvent } from '@testing-library/dom';
2+
import { render, waitFor } from '@testing-library/react';
23
import React from 'react';
34
import MutateObserver from '../src';
45

0 commit comments

Comments
 (0)