-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Migrate remaining tests to vitest-browser-react and browserUserEvent
#3640
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3640 +/- ##
=======================================
Coverage 98.65% 98.65%
=======================================
Files 47 47
Lines 3426 3426
Branches 742 742
=======================================
Hits 3380 3380
Misses 46 46 🚀 New features to boost your workflow:
|
| const resizeHandle = getResizeHandle(column); | ||
|
|
||
| await resizeHandle.dblClick(); | ||
| await userEvent.dblClick(resizeHandle); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added userEvent back for consistency
package.json
Outdated
| "@testing-library/dom": "^10.1.0", | ||
| "@testing-library/react": "^16.2.0", | ||
| "@testing-library/user-event": "^14.5.2", | ||
| "@testing-library/dom": "^10.4.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to keep this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
build fails without it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.

https://github.com/vitest-dev/vitest-browser-react
https://vitest.dev/guide/browser/interactivity-api.html