getMockImplementation only returns permanent implementation, not onceImplementation #7030
Open
6 tasks done
Labels
p3-minor-bug
An edge case that only affects very specific usage (priority)
Describe the bug
The
getMockImplementation()
method only returns permanent implementations, not implementations only added once. So the return value ofgetMockImplementation()
can be different, than the implementation being called.To me, it would make sense, that this method always returns the implementation, that will be called on the next call.
Reproduction
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: