Angular testing platform

Angular testing platform is used to test the interaction of classes with Angular and the DOM. Angular testing platform gives us liberty to examine an instance of a class without any dependence on Angular or injected values.

In this chapter, we will be focusing on Jasmine and Karma for testing.

When a new project is created using Angular-CLI, the e2e folder containing the end-to-end tests using Protractor is also created, along with the karma.conf.js and protractor.conf.js files, which are the configuration files for Karma and Protractor tests.

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.