-
-
Notifications
You must be signed in to change notification settings - Fork 840
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 : Vitest to src/state/* #2870
Refactor : Vitest to src/state/* #2870
Conversation
WalkthroughThe pull request involves refactoring test files in the Changes
Assessment against linked issues
Possibly related issues
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Tip CodeRabbit's docstrings feature is now available as part of our Early Access Program! Simply use the command 📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (2)
🧰 Additional context used📓 Learnings (1)📓 Common learnings
🔇 Additional comments (7)src/state/helpers/Action.spec.ts (2)
Defining the object separately and casting it to
These expectations clearly validate both src/state/action-creators/index.spec.ts (5)
Replacing
Using
Same pattern here; consistent and clean approach.
Continues the correct approach of migrating mocks from Jest to Vitest.
All dispatch testing blocks now use Vitest mocks consistently. 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 #2870 +/- ##
=====================================================
+ Coverage 63.58% 87.82% +24.24%
=====================================================
Files 296 313 +17
Lines 7371 8224 +853
Branches 1610 1799 +189
=====================================================
+ Hits 4687 7223 +2536
+ Misses 2451 802 -1649
+ Partials 233 199 -34 ☔ View full report in Codecov by Sentry. |
5c7fcd7
into
PalisadoesFoundation:develop-postgres
What kind of change does this PR introduce?
Added Vitest to src/state/*
Issue Number: 2787
Fixes #2787
Did you add tests for your changes?
Yes
Snapshots/Videos:
If relevant, did you update the documentation?
Summary
Migrated the testing framework to Vitest.
Updated all test files and configurations to be compatible with Vitest's syntax and features.
Have you read the contributing guide?
Yes
Summary by CodeRabbit
jest
tovitest
.type
andpayload
properties.