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 particularly ...

Get RxJS in Action now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.