O'Reilly logo

RxJS in Action by Paul P. Daniels and Luis Atencio

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 9. Toward testable, reactive programs

This chapter covers

  • Understanding functional programming’s inherent testability
  • Testing asynchronous code with Mocha.js
  • Exploring the tools for testing observables
  • Understanding the need for using virtual time instead of physical time
  • Introducing RxJS schedulers
  • Refactoring streams to enhance testability

If you’ve been in the software industry for any appreciable amount of time, you’ve likely encountered some form of testing. In production software, there’s no escaping the need for tests (or there shouldn’t be), whether they target newly written code or a system-wide refactoring. Changes to complex applications can easily produce unforeseen consequences in different paths of execution; it’s ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required