Angular Testing

•
1
•

Writes unit and integration tests for Angular v20+ applications using Vitest, Jasmine, and modern signal-based testing patterns.

Angular Testing provides Claude Code with deep expertise for configuring and writing robust unit and integration tests in modern Angular v20+ projects. It equips Claude to implement modern testing practices using Vitest or Jasmine with TestBed, specifically covering signal-based components, signal inputs and outputs, OnPush change detection, HTTP client testing, and async operations with fakeAsync and waitForAsync. This skill is ideal when migrating test suites to Vitest, scaffolding comprehensive test coverage for standalone components, or testing reactive signal pipelines and services.

主要功能

01Testing patterns for reactive primitives like signal(), computed(), and signal inputs
02Vitest configuration and native test runner integration for Angular v20+
031 GitHub stars
04Service testing with mock dependencies and HttpTestingController verification
05OnPush component testing with explicit change detection and ComponentRef setInput
06Asynchronous operation testing using fakeAsync, tick, flush, and waitForAsync

使用场景

01Testing HTTP services and interceptors with comprehensive mock response handling
02Migrating Angular test configurations and specs from Jasmine/Karma to native Vitest
03Scaffolding unit tests for standalone components using signal-based state and inputs