observeOnce
should use ES Observable call pattern
#2989
Labels
bug
Indicates an unexpected problem or an unintended behavior.
Version
4.8.0
Describe the bug
In
core/src/sagas/effects/observeOnce.js
, the call pattern forObservable.subscribe
is using older format (RxJS) instead of ES Observable.The new signature is being used in
observeEach.js
.This is causing test running in Jest not able to subscribe to the value correct.
The correct one is:
Steps to reproduce
DIRECT_LINE/POST_ACTIVITY
, and expectDIRECT_LINE/POST_ACTIVITY_FULFILLED
Expected behavior
The
POST_ACTIVITY_FULFILLED
action should be dispatched back.Instead, since
observeOnce
is not working under Jest + Node.js and failed silently, theDIRECT_LINE/POST_ACTIVITY_FULFILLED
is never dispatched. Instead, it dispatchedPOST_ACTIVITY_REJECTED
.Additional context
Tagging @youyu16.
[Bug]
The text was updated successfully, but these errors were encountered: