Unit Testing RxJS with Marble Diagrams

Marble diagrams enables you to understand the behavior of RxJS observables and operators visually. This course will teach you all of the foundational building blocks of Marble testing your RxJS app including hot and cold observables and much more.
Course info
Rating
(25)
Level
Beginner
Updated
Apr 26, 2019
Duration
2h 43m
Table of contents
Course Overview
Getting Started
Learning Jasmine Marble Basics
Unit Testing with Hot and Cold Observables
Unit Testing by Mocking Observable Values and Testing RxJS Operators
Testing Business Code and Handling Errors & Race Conditions
Description
Course info
Rating
(25)
Level
Beginner
Updated
Apr 26, 2019
Duration
2h 43m
Description

The RxJS library is one of the most popular libraries in the JavaScript world. RxJS provides reactive programming capability in your application. In this course, Unit Testing RxJS with Marble Diagrams, you'll get a complete overview of Marble testing, including what can be accomplished with it, starting with the basics of Marble syntax. First, you'll learn about Marble testing, in full detail, until the point of using it in a real-life web application. Next, you'll explore how to test hot and cold observables including mocking their values in unit tests. Then, you'll discover RxJS operators like zip and concat behaviors using Marble testing. Finally, you'll be shown how to write marble tests against business logic, exception cases, and finding and resolving race conditions using Marble testing. By the time you're done with this course, you'll have the expertise necessary to do Marble testing for RxJS applications and you'll be writing more readable tests around your RxJS code.

About the author
About the author

Rupesh is an independent consultant with over 12 years of experience in software development. As a software architect Rupesh creates web applications for the various domains industries using JavaScript, Node, Angular, Typescript, C#, and .Net.

Section Introduction Transcripts
Section Introduction Transcripts

Course Overview
Hi everyone. My name is Rupesh Tiwari. Welcome to my course, Unit Testing RxJS with Marble Diagrams. I am a senior web developer at Strasz Assessment Systems and working in RxJS and Angular since 2013. I use RxJS on a daily basis, both at work and on my personal projects. The RxJS library is one of the most popular libraries in the JavaScript world, and learning how to test RxJS with marble diagrams is one of the best things that you can do for your own career. All well-written, amazing code rots over time if it is not test-driven; however, in RxJS best applications, testing observables and operatives are not lots of fun. Marble testing makes RxJS unit testing simple, visible, and gives great benefits. In this course, you will learn all the tools and techniques to effectively test RxJS best applications. Some of the major topics that we will cover include learning marble syntaxes and jasmine-marbles hot and cold methods, unit testing with hot and cold observables, unit testing by mocking observables and operator's values, and you will also learn unit testing business logic, handling error and race conditions. By the end of this course, you will have a solid foundation to marble diagrams, marble syntaxes, and you will be able to write marble testing to your own project. Before starting this course, you should be familiar with JavaScript and RxJS. I hope you will join me on this course to learn marble testing through the Unit Testing RxJS with Marble Diagrams course, at Pluralsight.