Angular: Unit Testing
Test components with the Angular Testing Library and handle dependencies, directives and async logic.
Angular applications are complex systems of components and services. When writing new code, refactoring a service, or updating a template, a fundamental question arises: how confident can you be that you haven't broken something else?
Relying solely on manual testing — clicking through the UI after every change — is slow, unreliable, and doesn't scale. You end up with a fragile codebase where small changes have unpredictable side effects.
If you modify the DateFormatter without testing the Invoice module, you risk breaking billing without noticing.
Sign in to read this course
A free account unlocks all 514 courses. 20 are readable without one.
What's inside
7 sections- 1 Table of Contents
- 2 Module 1 — Getting Started with Angular Testing
- 3 Module 2 — Testing Components with Angular Testing Library
- 4 Module 3 — Testing Strategies for Dependencies, Directives, and Async Logic
- 5 Module 4 — Maintaining a Scalable Testing Workflow
- 6 Reference Tables
- 7 Course Summary
More Angular courses
View all 10Angular Foundations
Standalone components, template syntax and data binding, styling, routing and services.
Angular: Components and Templates
Template control flow, pipes, content projection and inter-component communication.
Angular: Services and Dependency Injection
Custom services, reactive/async services and Angular’s providers and injectors.
Angular Signals
The signal-based reactivity model — creating, reading, computed signals and fetching data.
Angular: RxJS for Reactive Programming
Reactive programming with RxJS and signals — events, operators, debouncing and reactive data.
Angular: Routing and Navigation
Routing from basic config to params, nested outlets, lazy loading, guards and router state.
Interested in this course?
Contact us to book it or get a custom training plan for your team.