refactor: consolidate riteway test helpers#781
Conversation
Move the shared test assert helper from 7 per-directory __tests__/ copies to a single apps/web/src/test/riteway.ts. Update all 16 test file imports to use @/test/riteway. Also update vitest.workspace.ts to reference apps/web/vitest.config.ts directly so the @/ path alias resolves correctly from the root runner. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.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 (23)
💤 Files with no reviewable changes (4)
📝 WalkthroughWalkthroughThis PR consolidates scattered test assertion helpers across multiple directories by centralizing them into a single Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 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 unit tests (beta)
📝 Coding Plan
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 |
Summary
riteway.tsassert helper into one canonical location atapps/web/src/test/riteway.ts@/test/ritewayvitest.workspace.tsto referenceapps/web/vitest.config.tsdirectly so path aliases resolve from the root test runnerNet change: -59 lines (7 files deleted, 16 one-line import updates)
Test plan
pnpm vitest runnow resolves@/aliases correctly for web tests|web|workspace label preserved in test output🤖 Generated with Claude Code
Summary by CodeRabbit