Angular Unit Testing Course - All That You Need to Know About Testing

preview_player
Показать описание

Welcome to my Angular unit testing course. This course covers all knowledge about Angulae unit testing and E2E testing. You will learn testing utilities, services, components and event NgRx. You will learn how to test RxJS, mock Http requests, use spy and mocks and much more. We will also test fully a real project so you'll see how it works in reality. By the end of this course you will be prepared to test any Angular project.

TIMESTAMPS
0:00 Start
0:18 Introduction
1:33 Why testing?
4:05 Source code
4:36 Setting up Node and Angular
8:09 What is unit testing
9:53 Setting up Jest
14:41 Testing utilities
25:31 Basic service testing
34:49 Mock and Spy
46:38 Testing RxJS streams
51:16 Testing HTTP in Angular
01:04:29 Testing HTTP errors

MOST POPULAR COURSES

FOLLOW ME
Рекомендации по теме
Комментарии
Автор

What I enjoy about your videos is how practical they are. They have immediate use in most large-scale Angular apps. Thank you for your work.

ovuokeaghwotu
Автор

Awesome! This comes to the right time :) Please keep up the great content.

FinanzMinimalist
Автор

This is definitely the BEST course on Angular Testing. I also bought your full course.
Thank you, keep up the good work!

marcogrillo
Автор

Very well explained in just an hour i went from zero to being confident, however could you also suggest how to unit test the components?

abhinav
Автор

As far as I know, you can simply destructure the 'expect' function from the callback parameter object inside 'it', in order to make it work with asynchronous code. Something like this:
it('should expect asynchronously', ({ expect }) => => { })})
But maybe this is just working with vitest, don't know for sure. Anyways, thanks for the content!

peter
Автор

It lacks the link to github with this code...

uaplatformacomua
Автор

I followed this video till minute 21 and I am stuck. I have this error when running the test: ({"Object.<anonymous>":function(module, exports, require, __dirname, __filename, jest){import { range } from './utils';


SyntaxError: Cannot use import statement outside a module

at Runtime.createScriptFromCode

Test Suites: 1 failed, 1 total
Tests: 0 total
Snapshots: 0 total
Time: 0.916 s
Ran all test suites. I can't fix it. can you help me please?

valerio
Автор

Please upload for react too and next js.

mma-dost