Conversation
Upgrade vitest from v2 to v4.1.4 across all packages, and vitest-mock-extended from v3 to v4.0.0. Fix constructor mock tests that used arrow functions (now require function/class keyword in Vitest 4) and explicit fs mock factory for Node built-in auto-mocking changes. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This comment has been minimized.
This comment has been minimized.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Caution Review failedPull request was closed or merged during review No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (6)
WalkthroughThis pull request upgrades vitest across four packages (from ^2.1.9 to ^4.1.4) and vitest-mock-extended in one package (^3.1.0 to ^4.0.0). Test file mocks were also updated to align with the newer vitest version's requirements, including changes to mock implementation styles and filesystem mocking strategies. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~22 minutes 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 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 |
License Audit
Weak Copyleft Packages (informational)
Resolved Packages (10)
|
Summary
vitestfrom v2 to v4.1.4 across all 4 packages (shared,queryLanguage,backend,web)vitest-mock-extendedfrom v3 to v4.0.0 inwebrepoIndexManager.test.tsthat used arrow functions (Vitest 4 requiresfunction/classkeyword for mocks called withnew)listCommitsApi.test.tsto use explicitfsmock factory instead of barevi.mock('fs')auto-mocking (behavior changed in Vitest 4 for Node built-ins)Test plan
🤖 Generated with Claude Code
Summary by CodeRabbit