RxJS unit testing in Angular application. The whole picture.
- Intermediate-advanced level of RxJS
- Intermediate-advanced level of Angular
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.
- Intermediate-advanced Angular developers
- RxJS enthusiasts
- 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
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.