-
-
Notifications
You must be signed in to change notification settings - Fork 789
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 src/components/OrgListCard/OrgListCard.test.tsx from Jest to Vitest #3005
Refactor src/components/OrgListCard/OrgListCard.test.tsx from Jest to Vitest #3005
Conversation
WalkthroughThe pull request focuses on refactoring the Changes
Assessment against linked issues
Possibly related issues
Possibly related PRs
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
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
|
2c5c621
to
21e5adb
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop-postgres #3005 +/- ##
=====================================================
+ Coverage 29.18% 88.95% +59.76%
=====================================================
Files 300 321 +21
Lines 7568 8409 +841
Branches 1652 1836 +184
=====================================================
+ Hits 2209 7480 +5271
+ Misses 5175 686 -4489
- Partials 184 243 +59 ☔ View full report in Codecov by Sentry. |
Please make code rabbit approve your changes |
21e5adb
to
4e2a1c2
Compare
2e18c32
into
PalisadoesFoundation:develop-postgres
… Vitest (PalisadoesFoundation#3005) * refactor src/components/OrgListcard to vitest * refactor src/components/OrgListcard to vitest * linting resolved
What kind of change does this PR introduce?
Refactoring src/components/OrgListCard/OrgListCard.test.tsx from Jest to Vitest
Issue Number:
Fixes #2813
Did you add tests for your changes?
Yes
Snapshots/Videos:
If relevant, did you update the documentation?
Not applicable.
Summary
This PR refactors the
src/components/OrgListCard/OrgListCard.test.tsx
file to use Vitest instead of Jest. The test file has been renamed toOrgListCard.spec.tsx
to align with the Vitest naming convention. The migration replaces Jest-specific syntax with Vitest-compatible functions and mocks. All tests pass withnpm run test:vitest
, and test coverage remains at 100%.Does this PR introduce a breaking change?
No
Other information
Refer to the Vitest configuration used for migration:
Base Vitest Configuration
Have you read the contributing guide?
Yes
Summary by CodeRabbit
beforeEach
to clear mocks