This one keeps you current with Angular 21's testing changes, which is actually important since they swapped Karma for Vitest as the default runner. You get practical patterns for TestBed setup, component fixtures, async testing with fakeAsync, and proper mocking with spies. The examples cover the basics well: AAA pattern, DOM querying with by.css, HTTP testing with the new provideHttpClient, and form validation. What's useful here is the emphasis on testing behavior over implementation details, plus the coverage of template testing which is new to Angular 21. If you're writing any kind of Angular test, whether unit, component, or service level, this gives you the modern approach without legacy Jasmine cruft.

skills.sh installs
197
GitHub stars
7
last updated
Aug 21, 2026

Install

$ npx -y skills add oguzhan18/angular-ecosystem-skills --skill angular-testing --agent claude-code

Installs into .claude/skills of the current project.

Files

Angular Testing

Version: Angular 21 (2025) Tags: Testing, Jasmine, Karma, Vitest, Cypress, Jest

References: Testing Guide • Testing API • Angular Blog

API Changes

This section documents recent version-specific API changes.

  • NEW: Vitest as default — Angular 21+ uses Vitest instead of Jasmine/Karma source

  • NEW: Template coverage — Coverage reports now include HTML templates source

  • NEW: Component input testing — Test component inputs directly with Component输入

  • NEW: Functional interceptors for testing — Easier to test HTTP interceptors

  • DEPRECATED: Karma test runner — Migrate to Vitest for modern Angular

Best Practices

  • Use TestBed for component testing
import { TestBed } from '@angular/core/testing';
import { MyComponent } from './my.component';

describe('MyComponent', () => {
  let component: MyComponent;
  let fixture: ComponentFixture<MyComponent>;

Sponsors

Details

Repository
github.com/oguzhan18/angular-ecosystem-skills
Categories
Frontend Development, Testing & QA, Documentation
First seen
Jun 3, 2026

More from oguzhan18/angular-ecosystem-skills

All 45
1personamanagmentlayer avatarreact-expertpersonamanagmentlayer/pclExpert-level React development with hooks, performance optimization, state management, and modern patterns197skills.sh installs
2travisjneuman avatargeneric-react-design-systemtravisjneuman/.claudeComplete design system reference for React applications. Covers colors, typography, spacing, component patterns, glassmorphism effects, GPU-accelerated animatio187skills.sh installs
3oguzhan18 avatarangular-viewchildoguzhan18/angular-ecosystem-skillsALWAYS use when working with Angular ViewChild, ContentChild, ViewChildren, or accessing DOM elements and child components in Angular.174skills.sh installs
4andrelandgraf avatarnextjs-on-vercelandrelandgraf/fullstackrecipesCreate a Next.js app running on Bun, configure the development environment, and deploy to Vercel with automatic deployments on push.164skills.sh installs
5posthog avatarfeature-flags-nextjsposthog/skillsPostHog feature flags for Next.js applications139skills.sh installs
6huangjia2019 avatarReact 最佳实践huangjia2019/claude-code-engineeringReact 组件设计模式、Hooks 使用指南、性能优化技巧0skills.sh installs