cartant / rxjs-marbles

An RxJS marble testing library for any test framework
https://cartant.github.io/rxjs-marbles/
MIT License
300 stars 18 forks source link

Problems testing observables that emit arrays or objects with other observables. #76

Closed fcostarodrigo closed 3 years ago

fcostarodrigo commented 3 years ago

It looks like when the observable emits another observable the tests work fine, but when instead we emit an object or an array containing the same observables the tests fail.

https://replit.com/@fcostarodrigo/MarblesHighOrderObservables#test.js

cartant commented 3 years ago

These days, this package is a thin wrapper around the RxJS TestScheduler's run mode. So if the TestScheduler doesn't support an expectation, this package doesn't either.

fcostarodrigo commented 3 years ago

Thanks for the fast response. I will investigate the issue later using TestScheduler.

fcostarodrigo commented 3 years ago

That happens with test scheduler as well. Same issue.

https://github.com/ReactiveX/rxjs/issues/6243