The TestScheduler library is rxjs' in-built testing library. Use this tag for questions around unit testing rxjs streams using the TestScheduler object.
The TestScheduler
is used to build unit tests when testing rxjs streams of data. These streams are often difficult to test using traditional testing techniques (in javascript) as rxjs does not use a traditional promises or even the in built javascript timer.
The library exists at:
import { TestScheduler } from 'rxjs/testing';
More information on using this library can be found at https://rxjs-dev.firebaseapp.com/guide/testing/marble-testing