Chapter 11: Unit test an Angular App
In the previous chapters, we have gone through many aspects of how to build an enterprise Angular 10 application from scratch. But how can we ensure that an application can be maintained in the future without much hassle? A comprehensive automated testing layer can become our lifeline once our application begins to scale up and we have to mitigate the impact of bugs.
Testing (and, more specifically, unit testing) is meant to be carried out by the developer as the project is being developed; however, we will cover all the intricacies of testing an Angular application briefly in this chapter, now that our knowledge for the framework is at a mature stage.
In this chapter, we will learn how to use testing tools to perform proper unit testing of our Angular application artifacts. In more detail, we will do the following:
- Look at the importance of testing and, more specifically, unit testing.
- Learn how to test components, with or without...