Beginner's Guide to Ionic Angular Unit Testing (Part 2) - Mocks and Spies
Beginner’s Guide to Ionic Angular Unit Testing (Part 2) – Mocks and Spies In our first part of this series, we saw how to set up the basic testing environment and got familiar with some of the terminologies for Unit Testing in the Angular world. Now you should be able to know – Karma, Jasmine tests, TestBed, Unit Testing: Mocks & Stubs etc. In this part, we will move further and add some more functionality to our app with the help of Angular Services(Testing services). As service dependencies will be injected into the components they will increase the complexity of our tests. Let’s jump ahead to the coding part. ...