test: weekly coverage improvement 2026-04-19#70
Open
vayungodara wants to merge 3 commits into
Open
Conversation
- New tests: comments.js (14), nudges.js (5), email.js (6), partnerships.js (20) - Extended: streaks.js (+15), streaks-advanced.js (+14) - Updated supabase-mock with .or() and .limit() chain methods - Coverage: 79.86% → 90.31% statements, 69.44% → 78.19% branches - All 261 tests pass Co-Authored-By: Claude Scheduled Task <noreply@anthropic.com> https://claude.ai/code/session_017yKgptxfHFsHf8skX9ighV
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
toLocaleString with hour12:false returns 24 for midnight on some Node/ICU builds (CI) vs 0 locally. Use modulo to accept both. https://claude.ai/code/session_017yKgptxfHFsHf8skX9ighV
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 Sunday coverage task.
What changed
comments.test.js(14 tests),nudges.test.js(5 tests),email.test.js(6 tests),partnerships.test.js(20 tests)streaks.test.js(+15 tests forformatDateInTimezone,getHourInTimezone,getActivityHeatmap),streaks-advanced.test.js(+14 tests forawardStreakFreeze,FREEZE_COOLDOWN_DAYS,getStreakFreezeStatus.nextFreezeEarned).or()and.limit()chain methods tosupabase-mock.js, unblockingpartnerships.js(deferred for 2 weeks)docs/reports/coverage-2026-04-19.mdCoverage improvement
Tests: 187 → 261 (all passing)
Files newly covered
lib/comments.js— 0% → 100%lib/nudges.js— 0% → 100%lib/email.js— 0% → 95.23%lib/partnerships.js— 0% → 94.16%lib/streaks.js— 49% → 89.62%lib/streaks-advanced.js— 84% → 88.09%Test results
All 261 tests pass. See the coverage report for detailed before/after metrics.
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.https://claude.ai/code/session_017yKgptxfHFsHf8skX9ighV