-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
chore: upgrade vitest to v4 #11336
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: upgrade vitest to v4 #11336
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 2 Skipped Deployments
|
cc4f993 to
e46cbc7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR upgrades the Vitest testing framework from v3.2.4 to v4.0.15 across the monorepo, along with its coverage plugin @vitest/coverage-v8.
- Updated vitest and @vitest/coverage-v8 dependencies from ^3.2.4 to ^4.0.15 across all packages
- Removed the deprecated
coverage.all: trueconfiguration option from vitest.config.ts to align with vitest v4 breaking changes - Updated lockfile to reflect the new dependency versions and their transitive dependencies
Reviewed changes
Copilot reviewed 16 out of 17 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| vitest.config.ts | Removed deprecated all: true option from coverage configuration, which is no longer supported in vitest v4 |
| package.json | Updated root package vitest and @vitest/coverage-v8 dependencies to v4.0.15 |
| packages/*/package.json | Updated vitest and @vitest/coverage-v8 dependencies to v4.0.15 across all workspace packages for consistency |
| packages/scripts/turbo/generators/templates/default/package.json.hbs | Updated template to use v4.0.15 for new packages |
| pnpm-lock.yaml | Updated lockfile with new vitest v4.0.15 package resolutions and transitive dependencies including updated versions of chai, expect-type, magicast, tinyrainbow, and removal of vite-node |
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
e46cbc7 to
4f0f61b
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #11336 +/- ##
===========================================
- Coverage 43.67% 32.45% -11.23%
===========================================
Files 375 369 -6
Lines 19348 13611 -5737
Branches 1887 1069 -818
===========================================
- Hits 8450 4417 -4033
+ Misses 10884 9059 -1825
- Partials 14 135 +121
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
No description provided.