-
-
Notifications
You must be signed in to change notification settings - Fork 757
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 migration for EditCustomFieldDropDown.test.tsx #2929
[REFACTOR]: Jest to Vitest migration for EditCustomFieldDropDown.test.tsx #2929
Conversation
WalkthroughThis 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)
🧰 Additional context used📓 Learnings (2)📓 Common learnings
src/components/EditCustomFieldDropDown/EditCustomFieldDropDown.spec.tsx (1)
🔇 Additional comments (3)src/components/EditCustomFieldDropDown/EditCustomFieldDropDown.spec.tsx (3)
This import correctly shifts from Jest to the Vitest testing framework. No further changes appear necessary for this line.
Replacing Jest’s
By removing the parameter in 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 #2929 +/- ##
=====================================================
+ Coverage 49.35% 88.13% +38.77%
=====================================================
Files 299 316 +17
Lines 7414 8265 +851
Branches 1621 1866 +245
=====================================================
+ Hits 3659 7284 +3625
+ Misses 3509 770 -2739
+ Partials 246 211 -35 ☔ View full report in Codecov by Sentry. |
9772f7d
into
PalisadoesFoundation:develop-postgres
What kind of change does this PR introduce?
This PR migrates the test cases in src/component/EditCustomFieldDropDown.test.tsx from Jest to Vitest, ensuring compatibility with Vitest .
✅ Replace Jest-specific functions and mocks with Vitest equivalents
✅ Ensure all tests in src/component/EditCustomFieldDropDown.test.tsx from Jest to Vitest.pass after migration using npm run test:vitest
✅ Maintain the test coverage for the file as 100% after migration
✅ Upload a video or photo for this specific file coverage is 100% in the PR description
Issue Number:
Fixes #2821
Did you add tests for your changes?
No
Snapshots/Videos:
Does this PR introduce a breaking change?
No
Have you read the contributing guide?
Yes
Summary by CodeRabbit
test
toit
for improved consistency.setCustomFieldData
to a no-op function for testing purposes.vitest
testing framework.