-
-
Notifications
You must be signed in to change notification settings - Fork 811
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
Refactor: jest to vitest of itemModal : fixes #2557 #2715
Refactor: jest to vitest of itemModal : fixes #2557 #2715
Conversation
WalkthroughThis pull request focuses on refactoring the test file Changes
Assessment against linked issues
Possibly related issues
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (1)
🧰 Additional context used📓 Learnings (2)📓 Common learnings
src/screens/OrganizationActionItems/ItemModal.spec.tsx (1)
🔇 Additional comments (2)src/screens/OrganizationActionItems/ItemModal.spec.tsx (2)
The Jest to Vitest migration for the mock setup is implemented correctly:
The Jest to Vitest migration for mock functions in props is implemented correctly and consistently across all test cases:
Also applies to: 58-61, 67-70, 110-113, 153-156, 206-209 Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
Our Pull Request Approval ProcessThanks for contributing! Testing Your CodeRemember, your PRs won't be reviewed until these criteria are met:
Our policies make our code better. ReviewersDo not assign reviewers. Our Queue Monitors will review your PR and assign them.
Reviewing Your CodeYour reviewer(s) will have the following roles:
CONTRIBUTING.mdRead our CONTRIBUTING.md file. Most importantly:
Other
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop-postgres #2715 +/- ##
====================================================
+ Coverage 86.10% 86.30% +0.20%
====================================================
Files 295 312 +17
Lines 7259 8134 +875
Branches 1591 1785 +194
====================================================
+ Hits 6250 7020 +770
- Misses 781 937 +156
+ Partials 228 177 -51 ☔ View full report in Codecov by Sentry. |
ed0a01c
into
PalisadoesFoundation:develop-postgres
What kind of change does this PR introduce?
Refactoring
Issue Number:
There are multiple test files in this directory. So it needs multiple PRs to close the issue. This PR fixes one such file inside that directory
itemModal.spec.tsx
Fixes #2557
Snapshots/Videos:
Summary
Refactored the
itemModal.tsx
tests from jest to vitest initemModal.spec.tsx
Have you read the contributing guide?
Yes
Summary by CodeRabbit
ItemModal
component tests.react-toastify
to usevi.fn()
instead ofjest.fn()
.