Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Angular Testing?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/andersseen-angular-testing)
---
name: angular-testing
description: Angular unit, component and E2E test boundaries. Use when writing or fixing tests for Angular code.
---
# Angular testing
Test behavior users and callers rely on.
## Scope
Use plain unit tests for pure functions and services. Use component tests for rendered behavior,
inputs, outputs, and template interaction. Use E2E tests for routing, browser integration, and
critical user flows.
## Coupling
Avoid tests that depend on private fields, incidental component internals, or exact template
structure unless that structure is the behavior. Prefer user-visible queries and meaningful state.
## Modern APIs
Use current Angular testing helpers and migrations for standalone components, router tests, and
signals. Keep setup small so failures point at behavior, not ceremony.