Designs and reviews Angular component tests for enterprise apps, focusing on template interaction, inputs/outputs, host testing, harnesses, and boundary-focused assertions.
Ships in ngautopilot-angular. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use this skill to design or review Angular component tests.
Component tests should verify the public contract: inputs, outputs, template behavior, and interaction patterns. They should not overfocus on internals unless the component itself is an internal implementation detail.
The core rule is simple:
Test the component like a consumer would use it.
Use this skill when:
Assert the rendered DOM and event emission:
it('emits save when the user clicks the button', () => {
const onSave = jest.fn();
const outputSubscription = fixture.componentInstance.save.subscribe(onSave);
try {
fixture.detectChanges();
const button: HTMLButtonElement | null =
fixture.nativeElement.querySelector('button[data-testid="save"]');
if (!button) throw new Error('Save button was not rendered');
button.click();
expect(onSave).toHaveBeenCalledTimes(1);
} finally {
outputSubscription.unsubscribe();
}
});
This example assumes an existing Jest fixture and a save button with the shown test ID. Use the project's equivalent spy API in other runners; do not migrate the runner to use the example. Calling save.emit() directly would bypass the template event binding and leave a broken click handler undetected.
Use a host component when parent-driven input/output behavior matters.
Prefer stable selectors or semantic queries over brittle implementation details.
Test content projection, conditional rendering, and disabled states when those are part of the public contract.
Avoid testing private methods directly unless there is no reasonable public contract.
Avoid coupling the test to incidental markup details.
Avoid turning every component test into a full integration suite.
Avoid duplicate assertions that do not add contract value.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
/ngautopilot-angular:angular--testing--angular-component-testing-patternsfrom ngautopilot-angular
npx claudepluginhub janpereira-dev/ngautopilot --plugin ngautopilot-angular350 skills in this plugin
/angular--ai--angular-v22-agent-skills-integrationAngular v22 Agent Skills IntegrationUse official Angular Agent Skills as reference material without copying them blindly or replacing NgAutoPilot routing. For Angular 22 projects and 21-to-22 upgrade planning.
/angular--ai--angular-v22-ai-tutor-safe-usageAngular v22 AI Tutor Safe UsageUse AI tutor workflows to teach Angular concepts without allowing unsafe code or secret exposure. For Angular 22 projects and 21-to-22 upgrade planning.
/angular--ai--angular-v22-angular-mcp-agent-workflowAngular v22 Angular MCP Agent WorkflowReview the workspace boundary, permissions, and runtime evidence of an Angular MCP integration. For Angular 22 projects and 21-to-22 upgrade planning.
/angular--ai--angular-v22-devserver-self-healing-loopAngular v22 Devserver Self Healing LoopUse devserver build logs as an agent feedback loop while keeping validation deterministic. For Angular 22 projects and 21-to-22 upgrade planning.
/angular--ai--angular-v22-webmcp-tool-exposureAngular v22 WebMCP Tool ExposureDesign WebMCP tool exposure with narrow capabilities, validation, permissions, and auditability. For Angular 22 projects and 21-to-22 upgrade planning.
/angular--architecture--angular-enterprise-onboarding-planAngular Enterprise Onboarding PlanDesigns Angular enterprise onboarding paths that ramp developers through project conventions, architecture boundaries, testing discipline, and version-aware delivery expectations.