angular-testing

Generate unit and integration tests for Angular v20+ apps with Vitest or Jasmine.

Updated Mar 12, 2026
One-click install
npx skills add https://github.com/WesleyMarinho/codeseek-marketplace --skill angular-testing-wesleymarinho
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: angular-testing
Source: https://github.com/WesleyMarinho/codeseek-marketplace/tree/main/skills/angular-testing
Command: npx skills add https://github.com/WesleyMarinho/codeseek-marketplace --skill angular-testing-wesleymarinho

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the process of writing robust unit and integration tests for Angular applications, ensuring code quality and maintainability.

Core Features & Use Cases

  • Vitest/Jasmine Integration: Supports modern testing with Vitest (recommended) or traditional Jasmine.
  • Signal-Based Components: Provides patterns for testing components utilizing Angular Signals.
  • Dependency Mocking: Demonstrates effective techniques for mocking services and HTTP requests.
  • Use Case: You've developed a new Angular component and need to write comprehensive tests to verify its functionality, including its interaction with services and its handling of user input.

Quick Start

Use the angular-testing skill to generate a basic unit test file for a given Angular component.

Frequently Asked Questions about angular-testing

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

FAQPage Schema
How do I write unit tests for Angular signal-based components?

Testing signal-based components involves verifying signal updates and state changes using Vitest or Jasmine. This Skill provides targeted patterns for Angular v20+ applications to ensure reliable component behavior.

What is the best way to mock HTTP requests in Angular integration tests?

Mocking HTTP requests in Angular integration tests requires effective dependency mocking techniques. This Skill demonstrates how to isolate components by mocking services and HTTP interactions for robust verification.

Does Vitest work with Angular v20+ for unit testing?

Vitest works with Angular v20+ for unit testing and is the recommended modern approach. This Skill supports configuring Vitest alongside traditional Jasmine frameworks for comprehensive test coverage.

How do I use component harnesses for Angular UI verification?

Using component harnesses for Angular UI verification allows you to interact with component elements robustly. This Skill facilitates utilizing harnesses to ensure accurate and maintainable UI testing.

Vitest vs Jasmine for Angular testing: which should I choose?

Choosing between Vitest and Jasmine for Angular testing depends on your infrastructure needs. Vitest is recommended for modern setups, while Jasmine is supported for traditional configurations within this Skill.