Ptarget
Bun

property

test.default.MockFunctionCall.target

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

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