angular-05-test

Automate Angular unit, integration, and store tests with TestBed and Jest.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/tak-bro/claude-code --skill angular-05-test
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: angular-05-test
Source: https://github.com/tak-bro/claude-code/tree/main/skills/angular-05-test
Command: npx skills add https://github.com/tak-bro/claude-code --skill angular-05-test

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Angular test writing and execution for Angular projects is time-consuming and error-prone; this Skill provides a structured approach and examples to verify components, services, and stores using the standard Angular testing stack.

Core Features & Use Cases

  • Unit tests for components and services using TestBed and HttpClientTestingModule
  • Integration tests for pages and smart components
  • Store testing with ngrx/component-store/testing or equivalent
  • Maintains compatibility with existing test patterns (Jest + Angular testing patterns)
  • Guidelines for test structure, mocking, and error handling

Quick Start

Run the angular test suite for a feature and review the generated coverage and reports to verify correctness.

Frequently Asked Questions about angular-05-test

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

FAQPage Schema
How do I write Angular unit tests for components and services using TestBed?▼

Angular unit tests for components and services use TestBed and HttpClientTestingModule to configure testing modules, inject dependencies, and validate behavior. This Skill provides structured guidelines for mocking services and handling errors within your existing test stack.

Does this Angular testing approach work with Jest and existing test patterns?▼

Yes, this Angular testing approach ensures compatibility with existing test patterns using Jest and Angular testing utilities. It maintains your current test stack while providing structured examples for component, service, and store validation.

What's the best way to set up integration tests for Angular smart components?▼

Integration tests for Angular smart components use ComponentFixture to verify interactions between pages and nested components. This Skill automates test writing to validate feature modules and provides guidelines for structuring integration tests.

How do I test an Angular store using ngrx component-store testing?▼

Angular store testing uses ngrx/component-store/testing or equivalent utilities to verify state logic and selectors. This Skill automates test execution for feature modules and provides examples for validating store behavior within Angular applications.

How do I mock HttpClient in Angular tests using HttpClientTestingModule?▼

Mocking HttpClient in Angular tests uses HttpClientTestingModule to intercept HTTP requests and simulate API responses. This Skill provides guidelines for mocking HTTP interactions and handling errors when testing services that depend on HttpClient.