-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
getVolunteerRanks test fix #2704
getVolunteerRanks test fix #2704
Conversation
WalkthroughThe changes in this pull request involve an update to the test cases for the Changes
Possibly related issues
Poem
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 ProcessWe have these basic policies to make the approval process smoother for our volunteer team. Testing Your CodePlease make sure your code passes all tests. Our test code coverage system will fail if these conditions occur:
The process helps maintain the overall reliability of the code base and is a prerequisite for getting your PR approved. Assigned reviewers regularly review the PR queue and tend to focus on PRs that are passing. 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
|
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.
Actionable comments posted: 0
🧹 Outside diff range and nitpick comments (1)
tests/resolvers/Query/getVolunteerRanks.spec.ts (1)
Line range hint
31-99
: Consider enhancing test coverageWhile the current tests cover basic scenarios, consider adding tests for:
- Edge cases (empty results, invalid timeframes)
- Combination of filters (timeFrame + limit + nameContains)
- Boundary conditions for different time periods
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
📒 Files selected for processing (1)
tests/resolvers/Query/getVolunteerRanks.spec.ts
(1 hunks)
🔇 Additional comments (1)
tests/resolvers/Query/getVolunteerRanks.spec.ts (1)
79-79
: Verify the updated hours calculation for monthly timeframe
The change from 2 to 6 hours appears to fix the flaky test. However, please verify that this aligns with the volunteer hours setup in createVolunteerAndActions()
helper function, particularly for the monthly calculation.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #2704 +/- ##
===========================================
- Coverage 98.17% 97.74% -0.44%
===========================================
Files 184 358 +174
Lines 10767 18114 +7347
Branches 835 2599 +1764
===========================================
+ Hits 10571 17706 +7135
- Misses 186 404 +218
+ Partials 10 4 -6 ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
@varshith257 We can ignore base branch check as all further pr should be against develop due to delay in develop-postgres |
I think we don't need to add tests here. We can aim fixing the test failed in this PR |
37cfbde
into
PalisadoesFoundation:develop
shall I create a new issue to fix project coverage |
I think no but check coverage report for each file in codecov and of it is too low below 90 create issues for it to increase test coverage |
What kind of change does this PR introduce?
Fixing flaky test
Issue Number:
#2703
Fixes #
Did you add tests for your changes?
Yes
Snapshots/Videos:
If relevant, did you update the documentation?
No
Summary
Fixes flaky tests
Does this PR introduce a breaking change?
No
Other information
Have you read the contributing guide?
Summary by CodeRabbit