Published On Mar 6, 2024
Tired of writing boilerplate code to test Angular components with router-specific data?
The RouterTestingHarness is your new best friend! This video dives deep into this under-appreciated Angular testing tool, showing you how to:
- Simplify tests involving ActivatedRoute and dynamic router parameters.
- Reduce boilerplate code and write cleaner, more maintainable tests.
- Navigate to specific routes and verify component behavior.
Whether you're a seasoned Angular developer or just starting out with testing, this video will equip you with the skills to write more efficient and effective tests.
0:00 Introduction
0:05 Theory
2:08 Test without RouterTestingHarness
6:40 Testing with RouterTestingHarness
11:53 Farewell