callCount
This function returns the number of times that this mock has been invoked. This function is more efficient than checking ctx.calls.length
because ctx.calls
is a getter that creates a copy of the internal call tracking array.
Since
v19.1.0, v18.13.0
Return
The number of times that this mock has been invoked.