In this chapter, we will cover one of the important topics in software development, that is, testing applications, and why it is important. We will start with an existing application that was built using the Angular CLI and we will make sure that all the existing tests pass. Then, we will add a new isolated test case and some deep integration testing to our application. We will then move on to running a code coverage report and setting thresholds for our coverage report. Afterward, we will move on to updating our tests, using Jest as the test runner to make the testing experience delightful. We will end this chapter by adding some end-to-end (e2e) tests to test the application.
The following topics will be covered in this chapter:
- Why test our web applications?
- Isolated unit testing
- Deep integration tests
- Deep...