asvetliakov / jest-create-mock-instance

Create mock instances with Jest
MIT License
34 stars 4 forks source link

Not compatible with jest 24.5.0 #5

Closed vytautas-pranskunas- closed 2 years ago

vytautas-pranskunas- commented 5 years ago

I have upgraded project to "jest": "^24.5.0" and "@types/jest": "^23.3.3", and started receiving errors on mockReturnValue

 loggerService = createMockInstance(RemoteLogger);
 loggerService.log.mockReturnValue(new Subject());

Argumen type is not assignable to type.... which, i think, means interfaces are not up to date. Also upgrading to latest 1.1 package version brings another error when doing createMockInstance(ComponentFactoryResolver); with similar error

asvetliakov commented 2 years ago

27