Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@
"@rc-component/np": "^1.0.4",
"@testing-library/jest-dom": "^6.1.4",
"@testing-library/react": "^16.3.0",
"@testing-library/user-event": "^14.5.2",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

While this dependency is currently unused, it's worth noting that @testing-library/user-event is generally recommended over fireEvent for simulating user interactions in tests. The project's tests currently use fireEvent (e.g., in tests/index.spec.tsx), which doesn't simulate real user behavior as closely as user-event does. For example, userEvent.click() fires pointer events, hover events, and focus/blur events, which fireEvent.click() does not.

For more robust and reliable tests, I'd recommend considering re-adding this dependency and refactoring your tests to use userEvent. If you decide to stick with fireEvent, then removing this dependency is fine.

"@types/jest": "^29.4.0",
"@types/node": "^24.2.0",
"@types/react": "^19.1.4",
Expand Down