angular-component-tests
CommunityWrite reliable Angular component tests
Software Engineering#vitest#angular#component testing#testing-library#overlays#user-event#cdk harness
AuthorTheNordicOne
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Angular component tests often become flaky, hard to maintain, and inconsistent when they bypass real user flows or render strategies.
Core Features & Use Cases
- Test host pattern: Always render the component under test through a host template instead of creating it directly.
- Angular Testing Library (ATL) + userEvent: Drive interactions as users would and assert against accessible UI behavior.
- Overlay escape hatch with CDK harnesses: Handle dialogs/menus/tooltips using CDK harness environments when the overlay is outside the fixture root.
Quick Start
Activate this skill when you are writing or reviewing Angular *.spec.ts files and want to render the component via a host, interact with it using userEvent, and assert using Testing Library queries.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: angular-component-tests Download link: https://github.com/TheNordicOne/ngx-formbar/archive/main.zip#angular-component-tests Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.