RxJS unit testing in Angular application. The whole picture.

I will make you understand the system - the system of RxJS unit testing tools in Angular applications.
English
English [Auto]
In-depth look in RxJS unit testing
All possible methods to do unit tests for RxJS code in Angular
Simplest async testing with Jasmine 'done' callback
Testing by using virtual time (RxJS VirtualTimeScheduler) and fake time (Angular fakeAsync helper)
How to avoid additional arguments in methods under test by using AsyncScheduler/delegate trick
What is difference between VirtualTimeScheduler and TestScheduler
What is marble testing and how to use progressive time syntax in marble diagrams
How to reduce code boilerplate by using wrapper libs like jasmine-marbles and rxjs-marbles
What is difference between testing with TestScheduler flush() and new TestScheduler run() method?
Angular demo project with all reviewed code

Requirements

  • Intermediate-advanced level of RxJS
  • Intermediate-advanced level of Angular

Description

If you already tried to code unit tests for Observables - then you may be overwhelmed with a variety of methods on how to do that.

Which one is right for you?

Will it be jasmine with 'done' callback which we usually use for async code?

Or maybe TestScheduler?

Or you are going to use jasmine-marbles which is being mentioned in official Angular documentation?

I am not even naming other methods.

What is common for them and where they differ? How to put all of them in one solid picture in your head?

This is what I am going to do in my lessons - I will make you understand the system.

Who this course is for:

  • Intermediate-advanced Angular developers
  • RxJS enthusiasts

Course content

4 sections11 lectures54m total length
  • Introduction
    02:04
  • RxJS Schedulers
    05:40

Instructor

Senior Front-end engineer
Oleksandr Poshtaruk
  • 4.5 Instructor Rating
  • 100 Reviews
  • 5,738 Students
  • 1 Course

Hi!
My name is Oleksandr Poshtaruk. I am a Senior front-end developer in ITecGurus company.
I've been in IT for 18 years for now and last 3.5+ years I’ve been working in commercial projects heavily using Angular framework and RxJS library. Writer for ‘Angular-in-Depth’ blog. National JS conference speaker. "Hands-on RxJS" Udemy video-course author with a PactPub.