Unit testing is the process of testing small and isolated pieces of code and it is a very powerful tool you have for preventing bugs within your application. This ensures that the application is stable, works exactly as expected and also provides an added advantage to the users to add any new features without breaking any other part of their application.
The primary focus for this course is to learn unit testing in Angular using Jasmine framework and Karma runner.
I will explain the fundamentals of angular testing from Scratch. Instead of learning the theoretical concepts, we will try to take a real world approach by writing test cases for scenarios that you may encounter on a day to day basis. By the end of the course, you will learn how to
Write and run tests in Angular using Jasmine & Karma.
Write tests for typescript classes & components.
Prepare the Angular Test Bed for creating the specs.
Test components and services using mocks and spies.
Write tests that involve an asynchronous operation.
Write tests that require the dependency injections.
Write tests that involve making Http calls.
Write tests that involve template-driven and reactive angular forms
Write tests to test the angular router.