Update vitest to v4#5791
Conversation
🦋 Changeset detectedLatest commit: 0d9f0f4 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Tests are failing even on main branch on my laptop, so I'm checking on CI if there is any failures |
There was a problem hiding this comment.
Pull request overview
This PR updates Vitest from v3 to v4, modernizing the test infrastructure and aligning with the latest Vitest APIs and configuration patterns.
Key Changes:
- Vitest and all related packages updated from v3.2.4 to v4.0.12
- Configuration migrated from deprecated
vitest.workspace.tstoprojectsoption invitest.config.ts - Package
@vitest/runneradded as new peer dependency for type definitions - Test utilities updated to use Vitest v4's assert API
Reviewed changes
Copilot reviewed 9 out of 10 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| vitest.workspace.ts | Removed in favor of inline projects configuration |
| vitest.shared.ts | Simplified by moving most config to main vitest.config.ts |
| vitest.config.ts | New centralized config file with projects array for workspace support |
| pnpm-lock.yaml | Updated all vitest-related dependencies from v3.2.4 to v4.0.12 |
| packages/vitest/src/utils.ts | Updated to use Vitest v4's assert API, removed node:assert dependency |
| packages/vitest/src/index.ts | Added @vitest/runner types import, simplified TestCollectorCallable interface |
| packages/vitest/package.json | Updated peer dependencies to vitest ^4.0.0 and added @vitest/runner ^4.0.0 |
| package.json | Updated root devDependencies for all @vitest/* packages to ^4.0.12 |
| .changeset/tiny-windows-ring.md | Documents the vitest v4 support as a minor change |
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
7584d9b to
e67518d
Compare
693bd77 to
5ad7701
Compare
5f208ec to
ddbec33
Compare
01ec940 to
2d3470b
Compare
5540156 to
f752fc3
Compare
f752fc3 to
2bedcf6
Compare
24ae504 to
6bc6da5
Compare
6bc6da5 to
1b1867b
Compare
* upstream/main: (126 commits) fix(@effect/cli): use Ansi.blackBright for Weak spans so --help is readable on dark terminals (Effect-TS#6208) fix(cli): replace all hyphens in shell completion command names (Effect-TS#6213) Version Packages (Effect-TS#6218) Support null K8s lastTransitionTime values (Effect-TS#6217) Version Packages (Effect-TS#6197) Backport workflow suspension failure fixes (Effect-TS#6196) clone full v4 history Version Packages (Effect-TS#6195) preserve fiber context in HttpLayerRouter.addHttpApi so API-level middleware is applied (Effect-TS#6147) correct typos in source code (receive, separate) (Effect-TS#6110) docs(@effect/vitest): fix return type in fails example (Effect-TS#6163) make RpcSerialization.msgPack options configurable (Effect-TS#6161) update msgpackr to 1.11.10 for Cloudflare Workers compatibility (Effect-TS#6191) fix: floor TestClock nanoseconds before BigInt conversion (Effect-TS#6194) chore: disable TypeScript's nightly workflow (Effect-TS#6193) Version Packages (Effect-TS#6189) (fix: ai-openai) Remove strict param from the OpenAI request body (Effect-TS#6188) Version Packages (Effect-TS#6142) fix(ai-openai): deduplicate response.output items to prevent invalid JSON concatenation (Effect-TS#6178) Change 'in-memory' to 'in_memory' in prompt cache enums (Effect-TS#6187) ...
|
@mikearnaldi would you be able to run CI for this? It should pass now. |
Type
Description
Update and support Vitest v4
Related