If true
, object[methodName]
is treated as a getter. This option cannot be used with the setter
option.
interface
test.default.MockMethodOptions
interface MockMethodOptions
- getter?: boolean
- setter?: boolean
If
true
,object[methodName]
is treated as a setter. This option cannot be used with thegetter
option. - times?: number
The number of times that the mock will use the behavior of
implementation
. Once the mock function has been calledtimes
times, it will automatically restore the behavior oforiginal
. This value must be an integer greater than zero.