Skip to main content

property MockFunctionCall.target

If the mocked function is a constructor, this field contains the class being constructed. Otherwise this will be undefined.

Type #

F extends new (...args: any) => any ? F : undefined

Did you find what you needed?

Privacy policy