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.
Rating: 3.7 out of 5 (39 ratings)
3,215 students
RxJS unit testing in Angular application. The whole picture.
Rating: 3.7 out of 5 (39 ratings)
3,215 students
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
Curriculum
4 sections • 11 lectures • 54m total length
  • Introduction
  • RxJS Schedulers
  • Testing with Jasmine 'done' callback
  • Testing by using RxJS VirtualTimeScheduler
  • Testing by using Angular fakeAsync function
  • VirtualTimeScheduler vs TestScheduler in RxJS
  • Marble testing with TestScheduler
  • Marble testing with jasmine-marbles
  • Marble testing with TestScheduler.run
  • Marble testing with rxjs-marbles lib
  • To wrap up

Instructor
Senior Front-end engineer
Oleksandr Poshtaruk
  • 3.7 Instructor Rating
  • 39 Reviews
  • 3,215 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.