Skip to content

test: weekly coverage improvement 2026-08-23 - #90

Open
vayungodara wants to merge 1 commit into
mainfrom
test/coverage-2026-08-23
Open

test: weekly coverage improvement 2026-08-23#90
vayungodara wants to merge 1 commit into
mainfrom
test/coverage-2026-08-23

Conversation

@vayungodara

Copy link
Copy Markdown
Owner

Weekly Test Coverage

Automated PR from the weekly coverage task.

What changed

  • activity.js: Added 5 happy-path tests for getGroupActivity, getAllActivity, and getGroupStats using a multi-table mock pattern. Statement coverage: 77.58% → 97.41%, function coverage: 29.16% → 100%.
  • notifications.js: Added 4 tests for the previously-untested getNotifications function. All metrics now at 100%.
  • reactions.js: Added 3 edge-case tests covering the non-PGRST116 error path in toggleReaction, unknown activity_id handling in getBatchReactions, and auth failure graceful degradation. Statement coverage: 90.47% → 95.23%.

Overall coverage

Metric Before After Change
Statements 89.56% 93.47% +3.91%
Branches 77.41% 81.60% +4.19%
Functions 79.41% 97.05% +17.64%
Lines 92.49% 95.08% +2.59%

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.md for 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

- 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>
@vercel

vercel Bot commented Aug 23, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
lockin Ready Ready Preview Aug 23, 2026 8:13am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants