Angular Vitest Migration Tool
Migrates Angular CLI test suites from Karma, Jasmine, or Jest to Vitest using the native Angular v21+ builder.
This skill provides a structured, state-machine-driven workflow to transition standalone Angular projects to the native Vitest integration. It addresses the critical architectural shift from Zone.js-dependent testing to Vitest's async-first environment, guiding developers through dependency installation, configuration updates, and the complex refactoring of legacy test patterns like fakeAsync, tick, and flush into modern Vitest-compatible alternatives.
Key Features
01Automated migration workflow through Assess, Configure, Transform, and Verify phases
02Integration guidance for JSDOM, Happy-dom, and Vitest Browser Mode with Playwright
03Comprehensive API mapping for Jasmine matchers, spies, and lifecycle hooks to Vitest
041 GitHub stars
05Configuration support for the native @angular/build:unit-test builder in Angular v21+
06Detailed refactoring of Zone.js tests (fakeAsync, tick) to Vitest fake timers
Use Cases
01Upgrading a standalone Angular v21+ project from Karma/Jasmine to the modern Vitest runner
02Resolving silent test failures and no-op async tests caused by Zone.js removal in Vitest
03Transitioning from Jest to the official native Angular Vitest builder for improved build performance