vitest-migration - Migrate Nx package tests from Jest to Vitest
Migrates an Nx package’s unit tests from Jest to Vitest 4 using the repository’s shared setup, source resolver, and package-specific configuration.
Tags
Updated: 2026-11-06Capabilities
Typical Inputs
What this skill does
- Survey Jest configuration
- Record baseline test results
- Create Vitest configuration
- Reuse shared Vitest setup
- Adapt module resolution
- Handle native bindings
- Migrate Jest test APIs
- Run parity tests
Inputs
- Nx repository
- Package name
- Jest configuration
- Package source tests
- Shared Vitest files
Outputs
- Vitest configuration file
- Migrated unit tests
- Migration notes file
- Removed Jest configuration
- Test results
Requirements
- Nx workspace
- Vitest 4
- @nx/vitest plugin
- pnpm and Nx commands
- Repository file access
