Angular unit testing using jest tutorial | Snapshot testing

Pubblicato il: 06 novembre 2021
sul canale di: JS Frameworks
5,977
80

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


In questa pagina del sito puoi guardare il video online Angular unit testing using jest tutorial | Snapshot testing della durata di ore minuti seconda in buona qualità , che l'utente ha caricato JS Frameworks 06 novembre 2021, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 5,977 volte e gli è piaciuto 80 spettatori. Buona visione!