Testing and Debugging

Testing is crucial to building production-ready applications. In unit tests, we test a component independent of external sources to make sure it works as expected. Angular 2 has testing capabilities bundled with it out of the box. In this chapter, we will take a look at performing unit test on the following elements:

  • Components
  • Services
  • Pipes
  • Directives

Get TypeScript 2.x for Angular Developers now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.