August 2017
Beginner to intermediate
370 pages
8h 37m
English
In this section, we will learn how to set up the test environment, and run the first unit test (written using Jasmine) with the Karma test runner.
The Angular app, when set up using the recommended methods such as those mentioned at https://angular.io/guide/setup, one of which was discussed in the Chapter 6, Getting Started with Angular, results in the installation of appropriate npm packages, files, and scripts, which can be used for writing and running unit tests with the Angular testing utilities Jasmine and Karma.
Perform the following steps to get started with running your first unit test:
Read now
Unlock full access