In this video I will teach you how to write unit test cases in your angular project using jasmine and karma in Hindi
code- https://github.com/mukeshphulwani66/Angular-unit-testing
Chapters-
00:00 - Course Introduction
01:17 - why to write unit testing
03:55 - Types of testing
06:14 - What is jasmine and karma
07:17 - Code setup
11:46 - Testing Services
28:47 - Testing Services with dependency & createSpyObj
32:34 - beforeEach
35:58 - using TestBed for service test
40:50 - Testing Service with HttpClient & HttpTestingController
01:15:16 - afterEach & httpTesting verify
01:18:12 - Testing Component
01:39:44 - mock return value of service method & detectChanges()
01:56:28 - Simulate user typing and button click
02:14:06 - Asynchronous code unit testing
02:21:22 - Asynchronous code test - jasmine done
02:22:43 - Asynchronous code test - fakeAsync
02:31:42 - Asynchronous code test - waitForAsync
02:37:23 - Testing Pipe
02:41:23 - Testing directive
02:45:11 - why compileComponents returns promise
02:51:50 - Testing navigation and Routing
03:08:27 - Automatic change detection - ComponentFixtureAutoDetect
03:10:45 - some utility methods and Code coverage report
connect with me on -
facebook :https://www.facebook.com/mukesh.phulwani.5
instagram : https://www.instagram.com/mukeshphulwani66
linkedin: https://www.linkedin.com/in/mukesh-phulwani-681450152/
github: https://github.com/mukeshphulwani66
codersneverquit website : https://www.codersneverquit.in/