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
Describe the bug
When .toPromise is called on a spied on method with a .nextWith the code stops execution
To Reproduce
Steps to reproduce the behavior:
In the test call nextWith on a spied on method
The spied on method is called with as await <<spy>>.<<method>>.toPromise() inside an async method
Step through
The next line in the method never gets hit and no errors are caught
Expected behavior
When called as toPromise() the observable should be cast as a Promise and when awaited should return the current value. Then jest debugger should not stop execution of the method and continue stepping through the code on the next line.
Screenshots
Desktop (please complete the following information):
Describe the bug
When .toPromise is called on a spied on method with a .nextWith the code stops execution
To Reproduce
Steps to reproduce the behavior:
await <<spy>>.<<method>>.toPromise()
inside an async methodExpected behavior
When called as toPromise() the observable should be cast as a Promise and when awaited should return the current value. Then jest debugger should not stop execution of the method and continue stepping through the code on the next line.
Screenshots
Desktop (please complete the following information):
Additional context
Package json version info:
The text was updated successfully, but these errors were encountered: