Skip to content

test: weekly coverage improvement 2026-05-31#77

Open
vayungodara wants to merge 3 commits into
mainfrom
test/coverage-2026-05-31
Open

test: weekly coverage improvement 2026-05-31#77
vayungodara wants to merge 3 commits into
mainfrom
test/coverage-2026-05-31

Conversation

@vayungodara

Copy link
Copy Markdown
Owner

Weekly Test Coverage

Automated PR from the Sunday coverage task.

What changed

  • 86 new unit tests (187 → 273 total), all passing
  • 7 new test files for previously untested lib utilities: comments.js, cronAuth.js, email.js, nudges.js, onboarding.js, partnerships.js
  • Expanded streaks.test.js with 12 new tests for formatDateInTimezone, getHourInTimezone, getActivityHeatmap
  • Extended supabase mock (tests/setup/supabase-mock.js) with or, limit, upsert, lte, gt, lt chain methods

Coverage improvements

Metric Before After Change
Statements 79.86% 89% +9.14pp
Branches 69.44% 75.67% +6.23pp
Functions 67.1% 79.43% +12.33pp
Lines 83.33% 92.15% +8.82pp

Key file improvements:

  • streaks.js: 49% → 92.45%
  • comments.js: 0% → 100%
  • nudges.js: 0% → 100%
  • email.js: 0% → 95.23%
  • cronAuth.js: 0% → 92.3%
  • partnerships.js: 0% → 91.66%
  • onboarding.js: 0% → 78.57%

Test results

All 273 tests pass. See docs/reports/coverage-2026-05-31.md for full details.

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.

https://claude.ai/code/session_01YTEQcwBVNSwrWoTwiCDEg7


Generated by Claude Code

- Expanded streaks.test.js (formatDateInTimezone, getHourInTimezone, getActivityHeatmap)
- New tests: comments, cronAuth, email, nudges, onboarding, partnerships
- Extended supabase mock with or/limit/upsert chain methods
- 86 new tests (187 → 273), all passing

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

https://claude.ai/code/session_01YTEQcwBVNSwrWoTwiCDEg7
@vercel

vercel Bot commented May 31, 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 May 31, 2026 8:24am

- cronAuth: save/restore individual env var instead of replacing process.env
- streaks: accept both 0 and 24 for midnight hour (ICU version difference)
- onboarding: use static mock instead of vi.importActual for gamification

https://claude.ai/code/session_01YTEQcwBVNSwrWoTwiCDEg7
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