We take a look at the basics of Angular unit testing using jest.
We are basically reusing the same project which we used for jasmine-karma testing • Angular unit testing using karma and ... . We take a step by step approach of how to convert the same project to use jest framework for unit testing.
Github url - https://github.com/anuroopjoy/angular...
00:00 - Introduction
00:22 - Setup jest in project
06:04 - Jest overview
07:22 - Jest fn() for Mock
14:27 - Jest expect() single param
16:38 - moduleNameMapper
17:32 - mockReturnValue
18:40 - Test coverage
20:04 - Jest async asserts
21:40 - Watch mode
24:10 - expect.assertions
26:21 - Snapshot testing
30:22 - Jest debug in Chrome
32:05 - Jest debug in VSCode
34:20 - Jest in CI
On this page of the site you can watch the video online Angular unit testing using jest tutorial | Snapshot testing with a duration of hours minute second in good quality, which was uploaded by the user JS Frameworks 06 November 2021, share the link with friends and acquaintances, this video has already been watched 5,977 times on youtube and it was liked by 80 viewers. Enjoy your viewing!