What problem does it solve?
Reduces the friction and uncertainty of writing reliable unit and integration tests for Angular v20+ applications by providing modern patterns for signal-based components, OnPush change detection, service testing, and HTTP interactions.
Core Features & Use Cases
- Component Testing: Patterns for standalone and OnPush components including how to set inputs, trigger change detection, and assert DOM updates driven by signals.
- Service and HTTP Testing: Guidance for injecting services, using HttpTestingController and provideHttpClientTesting for deterministic HTTP tests, and verifying no outstanding requests.
- Vitest Migration & Advanced Patterns: Migration tips from Jasmine to Vitest, mocking strategies, fake timers, component harnesses, router and form testing, and coverage configurations for CI pipelines.
- Use Case: Validate a signal-driven todo list component, mock its auth and API dependencies, verify filtered computed values, and assert template rendering under OnPush change detection.
Quick Start
Create a TestBed-based unit test for a standalone component using Vitest or Jasmine, set inputs via componentRef.setInput, call fixture.detectChanges, and assert the signal-driven DOM updates.