Skip to content

nightshift/tests: add coverage for 3 units - #11

Open
perandre wants to merge 1 commit into
mainfrom
nightshift/tests-2026-04-12
Open

nightshift/tests: add coverage for 3 units#11
perandre wants to merge 1 commit into
mainfrom
nightshift/tests-2026-04-12

Conversation

@perandre

Copy link
Copy Markdown
Owner

Summary\nFound coverage gaps and added tests for 3 units.\n\n## Tests added\n- app/lib/__tests__/aggregator.test.ts — 9 tests covering processActivities() and getDaySummary(): hour bucketing, spanning events, email deduplication, calendar notification filtering, source separation, empty-day handling\n- app/lib/ai/__tests__/parse.test.ts — 9 tests covering parseSuggestions(): valid JSON, markdown-wrapped responses, hour rounding, confidence defaults, truncated response salvaging, unique IDs, internalNote parsing, empty sourceActivities\n- app/lib/ai/__tests__/preprocess.test.ts — 7 tests covering preprocessActivities(): flattening/sorting, calendar minute calculation, spanning entry deduplication, invite email filtering, source-specific title generation, activity deduplication, empty input\n\nAlso added vitest.config.ts with path alias resolution for the @/* import pattern.\n\n## Verification\n- All 25 tests pass locally\n- Build succeeds with no errors

@vercel

vercelBot commented Apr 12, 2026

Copy link
Copy Markdown

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

ProjectDeploymentActionsUpdated (UTC)
activityReadyReadyPreview, CommentApr 12, 2026 6:15pm
worklog-xeqeReadyReadyPreview, CommentApr 12, 2026 6:15pm

Sign up for freeto 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.

1 participant

@perandre