[ ] 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 context
fake.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: