Interface MockInstance<T, Y>
Properties
_isMockFunction
_isMockFunction: true
_protoImpl
_protoImpl: Function
mock
Methods
getMockImplementation
- getMockImplementation(): Function | undefined
-
Returns Function
|
undefined
getMockName
-
Returns string
mockClear
-
Returns this
mockImplementation
- mockImplementation(fn: function): this
- mockImplementation(fn: function): this
-
Parameters
Returns this
-
Parameters
Returns this
mockImplementationOnce
- mockImplementationOnce(fn: function): this
- mockImplementationOnce(fn: function): this
-
Parameters
Returns this
-
Parameters
Returns this
mockName
- mockName(name: string): this
-
Parameters
Returns this
mockRejectedValue
- mockRejectedValue(value: T): this
-
Parameters
Returns this
mockRejectedValueOnce
- mockRejectedValueOnce(value: T): this
-
Parameters
Returns this
mockReset
-
Returns this
mockResolvedValue
- mockResolvedValue(value: T): this
-
Parameters
Returns this
mockResolvedValueOnce
- mockResolvedValueOnce(value: T): this
-
Parameters
Returns this
mockRestore
-
Returns void
mockReturnThis
-
Returns this
mockReturnValue
- mockReturnValue(value: T): this
-
Parameters
Returns this
mockReturnValueOnce
- mockReturnValueOnce(value: T): this
-
Parameters
Returns this