What problem does it solve?
Many Angular applications using modern patterns (signals, standalone components, OnPush) lack up-to-date, maintainable unit and integration tests; this Skill provides clear patterns and migration guidance to create fast, reliable tests that catch regressions early.
Core Features & Use Cases
- Vitest and Jasmine guidance: Clear setup and migration tips for Angular v20+ projects including angular.json and tsconfig.spec adjustments.
- Signal and OnPush testing: Patterns for testing signals, computed values, and components using OnPush change detection.
- Service and HTTP testing: Examples using TestBed, HttpTestingController or provideHttpClientTesting, and mocking strategies with vi or jasmine spies.
- Advanced patterns: Component harnesses, fake timers, snapshot testing, parameterized tests, and test utilities for robust, repeatable suites.
Quick Start
Generate Vitest unit tests for a component using TestBed, assert signal updates, and mock HTTP calls with the HttpTestingController.