Jasmine is the default test framework that ships with the Angular CLI tool. The CLI tool installs Jasmine, along with the popular test runner Karma, which allows you to run your tests in the browser of your choice.
By using Karma, we don't need to take care of installing and configuring Jasmine within our project. Karma takes care of that, and it also provides a lot of extras.
A project generated with the Angular CLI comes with two files relevant for running tests with Karma and Jasmine:
- /karma.conf.js: This file contains the configuration for the Karma test runner. It's already created for running Angular tests within the browser. By default, it's configured to run tests within a real Chrome browser. ...