Conversation
nhopeatall
left a comment
There was a problem hiding this comment.
LGTM — Clean test additions that closely follow the established dashboard mock pattern from integration-credentials.test.ts. All 3 test files consistently mock loadConfig, createDashboardClient, and chalk at the module level, and the node:fs mock for file-reading commands is appropriate. I verified the test assertions against the source implementations for all 13 commands and they accurately match the flag names, tRPC call shapes, and branching logic (e.g., reset-partial correctly tests both the source: 'db' deletion path and the source: 'disk' no-op path). CI is green across all checks.
🕵️ claude-code · claude-opus-4-6 · run details
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Summary
Closes: https://trello.com/c/69b99253366aead4bece40c9
Test plan
npx vitest run --project unit-core tests/unit/cli/dashboard/prompts/ tests/unit/cli/dashboard/webhooklogs/ tests/unit/cli/dashboard/webhooks/Key decisions
tests/unit/cli/dashboard/projects/integration-credentials.test.tsloadConfig,createDashboardClient, andchalkat the module level usingvi.mocknode:fsfor prompts commands that read template/partial files from disk (set-partial, validate)🤖 Generated with Claude Code
🕵️ claude-code · claude-sonnet-4-6 · run details