Description
In this course, you will learn:-
- An in-depth examination of RxJS unit testing
- Simplest async testing using Jasmine's 'done' callback All potential techniques for unit testing RxJS code in Angular
- Testing with fake time (RxJS VirtualTimeScheduler) and virtual time (RxJS VirtualTimeScheduler) (Angular fakeAsync helper)
- Utilizing the AsyncScheduler/delegate technique, you may avoid using additional arguments in your test methods.
- What is the difference between TestScheduler and VirtualTimeScheduler?
- How to utilise progressive time syntax in marble diagrams and what is marble testing.
- How to use wrapper libraries like jasmine-marbles and rxjs-marbles to reduce code boilerplate.
- What's the difference between using TestScheduler flush() and using the new TestScheduler run() function for testing?
- All code in this Angular sample project has been reviewed.
Syllabus:-
-
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