Skip to content

test: weekly coverage improvement 2026-06-21#80

Merged
vayungodara merged 2 commits into
mainfrom
test/coverage-2026-06-21
Jun 27, 2026
Merged

test: weekly coverage improvement 2026-06-21#80
vayungodara merged 2 commits into
mainfrom
test/coverage-2026-06-21

Conversation

@vayungodara

Copy link
Copy Markdown
Owner

Weekly Test Coverage

Automated PR from the scheduled coverage task.

What changed

  • 78 new unit tests (187 → 265 total), all passing
  • 5 previously untested lib files now have >90% statement coverage:
    • lib/comments.js — 0% → 100%
    • lib/nudges.js — 0% → 100%
    • lib/cronAuth.js — 0% → 92.3%
    • lib/onboarding.js — 0% → 91.07%
    • lib/partnerships.js — 0% → 91.66%
  • lib/streaks.js extended from 49% → 91.5% (added formatDateInTimezone, getHourInTimezone, getActivityHeatmap tests)
  • Supabase mock helper extended with or, limit, upsert chain methods (unblocking partnerships.js and onboarding.js which were deferred last time)

Coverage improvement

Metric Before After Change
Statements 79.86% 89.56% +9.7%
Branches 69.44% 77.41% +7.97%
Functions 67.1% 79.41% +12.31%
Lines 83.33% 92.49% +9.16%

Full report: docs/reports/coverage-2026-06-21.md

Test results

All 265 tests pass. No source files were modified.

Scope

Tests follow the existing Vitest + happy-dom conventions in tests/unit/lib/. React components, context providers, animation presets, and Supabase client config are out of scope.


Generated by Claude Code

- Added tests for 5 previously untested files: comments, nudges, cronAuth, onboarding, partnerships
- Extended streaks tests with formatDateInTimezone, getHourInTimezone, getActivityHeatmap coverage
- Extended supabase-mock with or/limit/upsert chain methods
- 78 new tests (187 → 265), all passing
- Statement coverage: 79.86% → 89.56%

Co-Authored-By: Claude Scheduled Task <noreply@anthropic.com>
@vercel

vercel Bot commented Jun 21, 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, Comment Jun 21, 2026 8:09am

Co-Authored-By: Claude Scheduled Task <noreply@anthropic.com>
@vayungodara vayungodara merged commit 8a8ec80 into main Jun 27, 2026
6 checks passed
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