Closed FreifeldRoyi closed 4 years ago
After defining a mock for a class with values
const mock = mock<MyClass>({ b: false, s: 'someText' }); // option 1 ... const mock = mock<MyClass>(); // option 2 mock.b = false
and accessing it with mock.b the field changes to a function mockConstructor () .... What's even more weird is that mock.s returns someText as expected
mock.b
function mockConstructor () ...
mock.s
someText
Pr open for this.
After defining a mock for a class with values
and accessing it with
mock.b
the field changes to afunction mockConstructor () ...
. What's even more weird is thatmock.s
returnssomeText
as expected