-
Notifications
You must be signed in to change notification settings - Fork 154
feat(prefer-user-event-setup): add new rule #1125
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
feat(prefer-user-event-setup): add new rule #1125
Conversation
Enforces using userEvent.setup() pattern instead of direct method calls as recommended in the official user-event documentation.
3626415 to
f89ad18
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1125 +/- ##
==========================================
+ Coverage 97.40% 97.48% +0.07%
==========================================
Files 48 49 +1
Lines 5826 5997 +171
Branches 1477 1518 +41
==========================================
+ Hits 5675 5846 +171
Misses 149 149
Partials 2 2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Belco90
left a comment
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.
@gipcompany thanks for your contribution! Great implementation and test cases, just added some minor comments.
Signed-off-by: Atsushi Ishida <[email protected]>
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.
The rule must be manually exported in lib/rules/index.ts
This was addressed with 8510411. |
|
@all-contributors please add @gipcompany for code, test, docs |
|
I've put up a pull request to add @gipcompany! 🎉 |
|
🎉 This PR is included in version 7.14.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
awesome new rule. thx @gipcompany ❤️ |
Checks
Changes
Context
Closes #646