Swipe to navigate through the chapters of this book
In this chapter, I describe the tools that Angular provides for unit testing components and directives. Some Angular building blocks, such as pipes and services, can be readily tested in isolation using the basic testing tools that I set up at the start of the chapter. Components (and, to a lesser extent, directives) have complex interactions with their host elements and with their template content and require special features. Table 29-1 puts Angular unit testing in context.
Please log in to get access to this content
To get access to this content you need the following product:
- Angular Unit Testing
- Sequence number
- Chapter number
- Chapter 29