Questions about Angular unit testing. Use this tag for Angular unit testing questions which are not specific to an individual version. Do not use this tag for the older AngularJS (1.x) web framework uni testing questions.
Angular unit testing is based on two systems. Jasmine (The testing framework) and Karma (The test runner).
The Angular CLI takes care of Jasmine and karma configuration for you.
You can fine-tune many options by editing the karma.conf.js
and the test.ts
files in the src/ folder.
The projects that you create with the CLI are immediately ready to test. Just run ng test
CLI command to run the tests.
Useful Links