Closed rbnayax closed 1 month ago
The following test fails:
it('nested properties mocks should be able to set properties and override cache', () => { const mock = createMock<any>(); const autoMockedFn = mock.nested.f; expect(typeof autoMockedFn).toEqual('function'); const myFn = () => 5; mock.nested.f = myFn; expect(mock.nested.f === myFn).toBeTruthy(); // Fails });
Fix released in @golevelup/ts-jest@0.5.4
@golevelup/ts-jest@0.5.4
The following test fails: