angular-testing
🎯Skillfrom analogjs/angular-skills
Angular skills for building signal-based forms with Angular v21+'s Signal Forms API, including schema-based validation, two-way binding, and dynamic form patterns.
Overview
Angular Testing is a Claude Code skill that provides comprehensive guidance for writing unit and integration tests in Angular v21+ applications. It covers Vitest (recommended) and Jasmine testing frameworks with TestBed, component harnesses, and modern testing patterns focused on signal-based components and the inject() function.
Key Features
- Native Vitest Support - Angular v20+ has built-in Vitest support through the
@angular/buildpackage, with configuration forangular.jsonandtsconfig.spec.json - Signal Component Testing - Test signal-based components by directly calling signal methods and asserting on signal values without complex change detection workarounds
- Vitest Mocking - Use
vi.fn()andvi.clearAllMocks()for creating mock services and verifying interactions in isolated component tests - HTTP Testing - Test HTTP interactions with mock providers and verify API call patterns in Angular's dependency injection context
- OnPush Change Detection - Guidance for testing components with OnPush change detection strategy, including proper fixture detection cycles
Who is this for?
This skill is designed for Angular v21+ developers who need to write tests for signal-based components, services using inject(), and HTTP interactions using modern testing frameworks. It is ideal for teams adopting Vitest as their Angular test runner and transitioning from Jasmine/Karma to the newer testing stack.
Same repository
analogjs/angular-skills(10 items)
Installation
npx vibeindex add analogjs/angular-skills --skill angular-testingnpx skills add analogjs/angular-skills --skill angular-testing~/.claude/skills/angular-testing/SKILL.mdSKILL.md
More from this repository9
An Angular v20+ component skill from the analogjs/angular-skills collection, teaching AI coding agents modern standalone component patterns with signal inputs/outputs, OnPush change detection, and native control flow.
Angular v20+ Signals API best practices for reactive state management, computed values, and effect handling.
Angular skills for building signal-based forms with Angular v21+'s Signal Forms API, including schema-based validation, two-way binding, and dynamic form patterns.
Covers Angular routing patterns including lazy loading, route guards, resolvers, nested routes, and navigation strategies for Angular v20+
Covers Angular HttpClient patterns including interceptors, error handling, request/response transformation, and API communication best practices
Covers Angular v20+ dependency injection using inject(), injection tokens, and provider configuration for service architecture, managing singleton vs scoped services, and understanding the DI hierarchy.
Covers Angular directive patterns including custom attribute and structural directives, DOM manipulation, and component behavior extension
Covers Angular development tooling including Angular CLI, build optimization, testing configuration, and project scaffolding for Angular v20+
Angular skills for building signal-based forms with Angular v21+'s Signal Forms API, including schema-based validation, two-way binding, and dynamic form patterns.