Published onApril 23, 2020Mocking out Angular's ActivatedRoute for Unit Testsangularunit-testangular-cliI've been writing a ton of unit tests and snapshot tests lately. While doing so, I have had to mock out a few things. This includes the `ActivatedRoute`. So let's say we have the following component.