angular-testing
Write unit and integration tests for Angular v20+ applications using Vitest or Jasmine with TestBed and modern testing patterns.
Skill by manu14357
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/manu14357-angular-testing
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: frontend, testing, devops, writing
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
angular-testing- Description
- Write unit and integration tests for Angular v20+ applications using Vitest or Jasmine with TestBed and modern testing patterns. Use for testing components with signals, OnPush change detection, services with inject(), and HTTP interactions. Triggers on test creation, testing signal-based components, mocking dependencies, or setting up test infrastructure. Don't use for E2E testing with Cypress or Playwright, or for testing non-Angular JavaScript/TypeScript code.
- License
- MIT
- Instructions
- 454 lines in SKILL.md · view on GitHub
Files (3)
- SKILL.md
- testing-patterns.md · references/
- vitest-migration.md · references/
SKILL.md (first lines)
# Angular Testing
Test Angular v20+ applications with Vitest (recommended) or Jasmine, focusing on signal-based components and modern patterns.
## Vitest Setup (Angular v20+)
Angular v20+ has native Vitest support through the `@angular/build` package.
```bash
npm install -D vitest jsdom
```
Configure in angular.json:
```json
{
"projects": {
"your-app": {
"architect": {
"test": {
"builder": "@angular/build:unit-test",
"options": {
"tsConfig": "tsconfig.spec.json",
"buildTarget": "your-app:build"
}
}
}
}
}
}
```
Run tests:
```bash
ng test # Run tests
ng test --watch # Watch mode
ng test --code-coverage # With coverage
```
For Vitest migration from Jasmine and advanced configuration, see [references/vitest-migration.md](references/vitest-migration.md).
## Basic Component Test
```typescript
import { describe, it, expect, beforeEach } from 'vitest';
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { Counter } from './counter.component';
describe('Counter', () => {
let component: Counter;
let fixture: ComponentFixture<Counter>;
beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [Counter], // Standalone component
}).compileComponents();
fixture = TestBed.createComponent(Counter);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
it('should increment count', () => {
expect(component.count()).toBe(0);
component.increment();
expect(component.count()).toBe(1);
});
it('should display count in template', () => {
component.count.set(5);
fixture.detectChanges();
const element = fixture.nativeElement.querySelector('.count');
expect(element.textContent).toContain('5');
});
});
```
## Testing Signals
### Direct Signal Testing
```typescript
import { signal, computed } from '@angular/core';
describe('Signal logic', () => {
it('should update computed when signal changes', () => {
const count = signal(0);
const doubled = computed(() => count() * 2);
expect(doubled()).toBe(0);
count.set(5);
expect(doubled()).toBe(10);
count.update(c => c + 1);
expect(doubled()).toBe(12);
});
});
```
### Testing Component Signals
```typescript
@Component({
selector: 'app-todo-list',
template: `
<ul>
@for (todo of filteredTodos(); track todo.id) {
<li>{{ todo.text }}</li>
}
</ul>
<p>{{ remaining() }} remaining</p>
`,From manu14357/zskills, MIT.
More from manu14357/zskills
- 0.555score
c4-architecture
manu14357
Generate architecture documentation using C4 model Mermaid diagrams.
SkillCFreshness: C★ 16Claude Code +9 - 0.550score
backend-to-frontend-handoff-docs
manu14357
Create API handoff documentation for frontend developers.
SkillCFreshness: C★ 16Claude Code +9 - 0.547score
ai-engineering-toolkit
manu14357
6 production-ready AI engineering workflows: prompt evaluation (8-dimension scoring), context budget planning, RAG pipeline design, agent security audit…
SkillCFreshness: C★ 16Claude Code +9 - 0.547score
ai-dev-jobs-mcp
manu14357
Search 8,400+ AI and ML jobs across 489 companies, inspect listings and employers, match roles, and view salary and market stats via AI Dev Jobs MCP
SkillCFreshness: C★ 16Claude Code +9 - 0.538score
ai-product
manu14357
Every product will be AI-powered.
SkillCFreshness: C★ 16Claude Code +9 - 0.538score
ai-md
manu14357
Convert human-written CLAUDE.md into AI-native structured-label format.
SkillCFreshness: C★ 16Claude Code +9 - 0.519score
agent-manager-skill
manu14357
Manage multiple local CLI agents via tmux sessions (start/stop/monitor/assign) with cron-friendly scheduling.
SkillCFreshness: C★ 16Claude Code +9 - 0.513score
agent-memory-systems
manu14357
Memory is the cornerstone of intelligent agents.
SkillCFreshness: C★ 16Claude Code +9 - 0.485score
browser-testing-with-devtools
manu14357
Tests in real browsers.
SkillDFreshness: D★ 16Claude Code +9 - 0.481score
azure-cloud-migrate
manu14357
Plan and execute cloud migrations to Azure from on-premises or other clouds.
SkillDFreshness: D★ 16Claude Code +9 - 0.481score
azure-aigateway
manu14357
Design an Azure AI gateway layer for centralized model routing, policy enforcement, and operational control.
SkillDFreshness: D★ 16Claude Code +9 - 0.481score
appinsights-instrumentation
manu14357
Instrument applications with Azure Application Insights and OpenTelemetry for end-to-end observability.
SkillDFreshness: D★ 16Claude Code +9
Signals
- Stars
- 16
- Forks
- 2
- Open issues
- 0
- Last commit (this folder)
- Apr 27, 2026 (6 months ago)
- Last release
- Apr 26, 2026 (6 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/manu14357/zskills
- Website
- zskills.vercel.app
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
- 0.661score
angular-testing
Kilo-Org
Write unit and integration tests for Angular v20+ applications using Vitest or Jasmine with TestBed and modern testing patterns.
SkillAFreshness: A★ 195Claude Code +9 - 0.285score
angular-testing
L-X-T
Write unit and integration tests for Angular v20+ applications using Vitest or Jasmine with TestBed and modern testing patterns.
SkillCFreshness: CClaude Code +9
More from manu14357
- 0.555score
c4-architecture
manu14357
Generate architecture documentation using C4 model Mermaid diagrams.
SkillCFreshness: C★ 16Claude Code +9 - 0.550score
backend-to-frontend-handoff-docs
manu14357
Create API handoff documentation for frontend developers.
SkillCFreshness: C★ 16Claude Code +9 - 0.547score
ai-dev-jobs-mcp
manu14357
Search 8,400+ AI and ML jobs across 489 companies, inspect listings and employers, match roles, and view salary and market stats via AI Dev Jobs MCP
SkillCFreshness: C★ 16Claude Code +9 - 0.547score
ai-engineering-toolkit
manu14357
6 production-ready AI engineering workflows: prompt evaluation (8-dimension scoring), context budget planning, RAG pipeline design, agent security audit…
SkillCFreshness: C★ 16Claude Code +9 - 0.538score
ai-md
manu14357
Convert human-written CLAUDE.md into AI-native structured-label format.
SkillCFreshness: C★ 16Claude Code +9 - 0.538score
ai-product
manu14357
Every product will be AI-powered.
SkillCFreshness: C★ 16Claude Code +9
Cite this page
angular-testing skill. Agent Mart. https://agentmart.dev/skills/manu14357-angular-testing (last updated 2026-10-24)