Simple play icon Course
Skills Expanded

Unit Testing RxJS with Marble Diagrams

by Rupesh Tiwari

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.

What you'll learn

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.

Table of contents

Course Overview
2mins

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 various domain industries using JavaScript, Node, Angular, C#, and .Net. Rupesh trained over 100 software developers at conferences and companies worldwide on front-end development, testing, clean code, domain driven design, micro services and service oriented architecture. He lives in New Jersey where he blogs at codeproject.com and is active ... more

Ready to upskill? Get started