ng-register-vitest

Migrate Angular test suites from Karma/Jasmine to Vitest with configuration and API updates.

Updated Mar 5, 2026
One-click install
npx skills add https://github.com/alexander-kastil/advanced-angular-agentic-swe --skill ng-register-vitest
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ng-register-vitest
Source: https://github.com/alexander-kastil/advanced-angular-agentic-swe/tree/main/.github/skills/ng-register-vitest
Command: npx skills add https://github.com/alexander-kastil/advanced-angular-agentic-swe --skill ng-register-vitest

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Migrates Angular test suites from Karma/Jasmine to Vitest, reducing setup frictions and aligning with zoneless/OnPush testing patterns.

Core Features & Use Cases

  • Step-by-step migration guidance covering dependency removal, Vitest configuration, test file API changes, timer control, and DOM testing updates.
  • Practical guidance for migrating large codebases with multiple test suites.
  • Use case: teams migrating Angular projects to Vitest for faster test runs and simplified test setup.

Quick Start

Follow the migration guide to switch your Angular tests from Karma/Jasmine to Vitest.

Frequently Asked Questions about ng-register-vitest

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?

Migrating Angular tests to Vitest involves removing Karma and Jasmine, adding Vitest configuration and setup files, updating tsconfig and angular.json, and applying API changes for spies, timers, and DOM testing to achieve a Vitest-based unit testing workflow.

What Angular and Node.js versions are required for Vitest migration?

Vitest migration requires Angular v20.2 or later, TypeScript 5.7 or later, and Node.js 20 or higher. These prerequisites ensure compatibility with the Vitest configuration and align with zoneless or OnPush testing patterns.

How do I update Jasmine spies and timers when switching to Vitest?

When switching to Vitest, you update Jasmine spies and timers to their Vitest equivalents. The migration provides guidance for these API changes to ensure your component and service tests maintain compatibility in the Vitest environment.

Does migrating Angular to Vitest support large codebases with multiple test suites?

Yes, migrating Angular to Vitest supports large codebases with multiple test suites. It provides practical step-by-step migration guidance for dependency management and test compatibility across components and services to reduce setup frictions.

What configuration files need to change for Angular Vitest setup?

Angular Vitest setup requires modifying angular.json and tsconfig files, alongside adding a new Vitest configuration file and a test setup file. These updates remove Karma dependencies and establish the Vitest testing workflow.