The meaning of spy.reset is ambiguous (see discussion in #138). What exactly does it reset? The call count? The return/thrown values?
My vote is to either remove it or make its meaning more clear. If we remove it, the simple upgrade path is to substitute all uses of spy.reset() with spy.calls = []. Super easy.
The meaning of
spy.resetis ambiguous (see discussion in #138). What exactly does it reset? The call count? The return/thrown values?My vote is to either remove it or make its meaning more clear. If we remove it, the simple upgrade path is to substitute all uses of
spy.reset()withspy.calls = []. Super easy.