Repository navigation
docs: align testing principles with fewer longer tests - #105
Conversation
Co-authored-by: Kent C. Dodds <me+github@kentcdodds.com>
Co-authored-by: Kent C. Dodds <me+github@kentcdodds.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (5)
📝 WalkthroughWalkthroughThe changes shift testing guidance and implementations from granular, isolated tests toward comprehensive end-to-end tests covering entire user journeys with multiple sequential assertions. Test implementations are refactored to use structured data validation instead of text parsing, with duplicated assertions consolidated into reusable helpers. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
🔎 Preview deployed: https://kody-pr-105.kentcdodds.workers.dev Worker: Mocks:
|
Summary
docs/agents/testing-principles.mddocs/agents/end-to-end-testing.mdso E2E guidance also prefers workflow-shaped tests over splitting one journey into many tiny casesTesting
npm exec vitest run packages/worker/src/mcp/tools/execute.node.test.ts packages/worker/src/mcp-auth.workers.test.tsnpm exec vitest --config vitest.mcp-e2e.config.ts run packages/worker/src/mcp/mcp-server.mcp-e2e.test.tsSummary by CodeRabbit
Documentation
Tests