@nx/vitest - Migrations
The @nx/vitest plugin provides various migrations to help you migrate to newer versions of vitest projects within your Nx workspace. Below is a complete reference for all available migrations.
22.3.x
Section titled “22.3.x”update-22-3-2
Section titled “update-22-3-2”Version: 22.3.2-beta.0
Create AI Instructions to help migrate users workspaces past breaking changes for Vitest 4.
Requires
Section titled “Requires”| Name | Version |
|---|---|
@angular/build | >=21.0.0 |
22.3.2-package-updates
Section titled “22.3.2-package-updates”Version: 22.3.2-beta.0
Packages
Section titled “Packages”The following packages will be updated:
| Name | Version | Always add to package.json |
|---|---|---|
vitest | ^4.0.8 | Updated only |
@vitest/coverage-v8 | ^4.0.8 | Updated only |
@vitest/coverage-istanbul | ^4.0.8 | Updated only |
@vitest/ui | ^4.0.8 | Updated only |
jsdom | ^27.1.0 | Updated only |
22.3.2-analog-package-updates
Section titled “22.3.2-analog-package-updates”Version: 22.3.2-beta.0
Packages
Section titled “Packages”The following packages will be updated:
| Name | Version | Always add to package.json |
|---|---|---|
@analogjs/vite-plugin-angular | ~2.2.0 | Updated only |
@analogjs/vitest-angular | ~2.2.0 | Updated only |
22.2.x
Section titled “22.2.x”22.2.0-analog-package-updates
Section titled “22.2.0-analog-package-updates”Version: 22.2.0-beta.3
Packages
Section titled “Packages”The following packages will be updated:
| Name | Version | Always add to package.json |
|---|---|---|
@analogjs/vite-plugin-angular | ~2.1.2 | Updated only |
@analogjs/vitest-angular | ~2.1.2 | Updated only |
22.1.x
Section titled “22.1.x”update-22-1-0
Section titled “update-22-1-0”Version: 22.1.0-beta.8
Create AI Instructions to help migrate users workspaces past breaking changes for Vitest 4.
22.1.0-package-updates
Section titled “22.1.0-package-updates”Version: 22.1.0-beta.8
Packages
Section titled “Packages”The following packages will be updated:
| Name | Version | Always add to package.json |
|---|---|---|
vitest | ^4.0.0 | Updated only |
@vitest/coverage-v8 | ^4.0.0 | Updated only |
@vitest/coverage-istanbul | ^4.0.0 | Updated only |
@vitest/ui | ^4.0.0 | Updated only |
20.3.x
Section titled “20.3.x”update-20-3-0
Section titled “update-20-3-0”Version: 20.3.0-beta.2
Add gitignore entry for temporary vitest config files.
Add Vitest Temp Files to Git Ignore
Section titled “Add Vitest Temp Files to Git Ignore”Add gitignore entry for temporary vitest config files.
Sample Code Changes
Section titled “Sample Code Changes”Adds the following entries to the .gitignore file.
vite.config.*.timestamp*vitest.config.*.timestamp*