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
A mock or fake should be able to reset all it's function returns at once
How it works now:
fake.someFunction.returns(1,2,3)fake.someOtherFunction.returns([3,2])...// and then at some other contextfake.someFunction.reset()fake.someOtherFunction.reset()
This requires the developer to remember to reset all of the set variables and brings unexpected error when forgets to reset a previous return. How it should work:
How it works now:
This requires the developer to remember to reset all of the set variables and brings unexpected error when forgets to reset a previous return. How it should work:
The text was updated successfully, but these errors were encountered: