You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Angular 17.3 added outputFromObservable as interop function to create an output that emits the values of an observable stream. This simplifies passing values to an output when an observable stream emits.
When the tests are run, the emitted values of isChanged are not captured by the tests.
expect(jest.fn()).toHaveBeenCalled()
Expected number of calls: >= 1
Received number of calls: 0
A similar test in jasmine succeeds. Using the long-hand of manually subscribing to the stream and calling a output directly also works.
Motivation
It would be nice if outputFromObservable could be used, instead of needing to use the long-hand form, which involves manually needing to subscribing to the stream calling output instead
Example
No response
The text was updated successfully, but these errors were encountered:
🚀 Feature Proposal
Angular 17.3 added
outputFromObservable
as interop function to create anoutput
that emits the values of an observable stream. This simplifies passing values to an output when an observable stream emits.When the tests are run, the emitted values of
isChanged
are not captured by the tests.A similar test in jasmine succeeds. Using the long-hand of manually subscribing to the stream and calling a
output
directly also works.Motivation
It would be nice if
outputFromObservable
could be used, instead of needing to use the long-hand form, which involves manually needing to subscribing to the stream callingoutput
insteadExample
No response
The text was updated successfully, but these errors were encountered: