angular-vitest-setup

Migrate Angular workspaces from Karma/Jasmine to Vitest with preflight checks.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/cromesdk/ai-skills --skill angular-vitest-setup
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: angular-vitest-setup
Source: https://github.com/cromesdk/ai-skills/tree/main/skills/angular/angular-vitest-setup
Command: npx skills add https://github.com/cromesdk/ai-skills --skill angular-vitest-setup

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the migration of Angular projects from the outdated Karma/Jasmine testing framework to the modern and faster Vitest, ensuring a smooth transition with minimal disruption.

Core Features & Use Cases

  • Deterministic Preflight Checks: Verifies workspace readiness before making any changes.
  • Dependency Management: Safely installs Vitest and removes Karma/Jasmine packages.
  • Configuration Updates: Modifies angular.json to point to the Vitest builder.
  • Spec File Refactoring: Updates outdated Jasmine-specific APIs in test files.
  • Use Case: You have an Angular 20 application that's slow to test. Use this Skill to switch its test runner to Vitest, significantly speeding up your development feedback loop.

Quick Start

Use the angular-vitest-setup skill to migrate the current Angular project's test runner to Vitest.

Frequently Asked Questions about angular-vitest-setup

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I migrate Angular tests from Karma and Jasmine to Vitest?

To migrate Angular tests from Karma and Jasmine to Vitest, the Skill performs preflight checks, updates the test builder target in angular.json, swaps dependencies using npm, and refactors spec files to remove outdated Jasmine-specific APIs.

Why should I switch my Angular testing framework to Vitest?

Switching your Angular testing framework to Vitest significantly improves test execution speed and developer experience, providing a faster development feedback loop for Angular 20 projects compared to the outdated Karma test runner.

Does the Angular Vitest migration work with Angular 20 projects?

Yes, the Vitest migration is explicitly applicable for Angular 20 projects. It requires npm for dependency management and Angular CLI for workspace configuration to ensure a smooth transition.

What is the best way to update Jasmine-specific APIs in Angular spec files?

The best way to update Jasmine-specific APIs in Angular spec files is through automated refactoring during the Vitest migration, which replaces outdated Jasmine syntax to ensure compatibility with the new test runner.

How do preflight checks work when migrating Angular workspaces to Vitest?

Preflight checks verify workspace readiness before making any changes to ensure a deterministic migration. They validate the environment before updating angular.json and managing the Vitest and Karma dependencies.

What are the limitations of migrating Angular tests to Vitest?

Limitations include requiring npm for dependency management and Angular CLI for workspace configuration. The migration targets Angular 20 projects and may require manual intervention if spec files contain complex Jasmine-specific APIs that cannot be automatically refactored.