-
Install the NPM package:
yarn add brevno-rxjs
or
npm install brevno-rxjs --save
-
Optional: if you use Jest, you can add a serializer that represents an RxJS observable as just
[Observable]
instead ofObservable { "_isScalar": false, "_subscribe": [Function], }
Here's how to do this:
-
If you use Create React App,
import 'brevno-rxjs/setupTests'
in yoursrc/setupTests.ts
. -
Otherwise, add an item
"<rootDir>/node_modules/brevno-rxjs/build/main/setupTests.js"
to"setupFilesAfterEnv"
array in Jest config.
-
TODO