-
I have some code that uses mocks and jest functions like const fooService = spectator.inject(FooService);
fooService.someMethod.mockReturnValue({foo: 'bar'}); This worked fine but now suddenly I get typescript errors It looks like typescript doesn't use the jest typings but the jasmine version. I'm not sure if that is an issue with my configuration, with a wrong version of jest or maybe caused by TypeScript 5. Did anybody else expect similar issues? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
I searched a bit deeper into this issue and it seams that this change 4fc8e24 is causing the problem. When reverting to the previous version mocks are typed correctly. This is obviously a bug #614 |
Beta Was this translation helpful? Give feedback.
I searched a bit deeper into this issue and it seams that this change 4fc8e24 is causing the problem.
When reverting to the previous version mocks are typed correctly.
This is obviously a bug #614