Skip to main content

property MockFunctionOptions.times

The number of times that the mock will use the behavior of implementation. Once the mock function has been called times times, it will automatically restore the behavior of original. This value must be an integer greater than zero.

Type #

number | undefined

Did you find what you needed?

Privacy policy