test: weekly coverage improvement 2026-08-23 - #90
Open
vayungodara wants to merge 1 commit into
Open
Conversation
- activity.js: added happy-path tests for getGroupActivity, getAllActivity, getGroupStats with multi-table mock (77.58% -> 97.41% stmts, 29% -> 100% funcs) - notifications.js: added getNotifications tests (87.27% -> 100% stmts) - reactions.js: covered non-PGRST116 error and unknown activity_id edge cases (90.47% -> 95.23% stmts) - Overall: 89.56% -> 93.47% statements, 79.41% -> 97.05% functions - All 277 tests pass Co-Authored-By: Claude Scheduled Task <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Weekly Test Coverage
Automated PR from the weekly coverage task.
What changed
activity.js: Added 5 happy-path tests forgetGroupActivity,getAllActivity, andgetGroupStatsusing a multi-table mock pattern. Statement coverage: 77.58% → 97.41%, function coverage: 29.16% → 100%.notifications.js: Added 4 tests for the previously-untestedgetNotificationsfunction. All metrics now at 100%.reactions.js: Added 3 edge-case tests covering the non-PGRST116 error path intoggleReaction, unknownactivity_idhandling ingetBatchReactions, and auth failure graceful degradation. Statement coverage: 90.47% → 95.23%.Overall coverage
Total tests: 265 → 277 (+12 new tests). All pass.
Test results
All tests pass. See the coverage report at
docs/reports/coverage-2026-08-23.mdfor full details.Scope
Tests follow the existing Vitest + happy-dom conventions in
tests/unit/lib/. React components, context providers, and animation presets are out of scope for this task.Generated by Claude Code