Roy Peled
Roy Peled
Can you provide a code sample of what you expect and what is not working as expected?
Good idea, here it is: https://github.com/TypeStrong/ts-mockito/pull/46
Good idea, here is the PR: https://github.com/TypeStrong/ts-mockito/pull/47
Can you provide with a code sample of usage? I want to provide the solution but it depends on the ergonomics of the usage.
I think that this can be easily achieved with spies, instead of creating a new interface: ``` const CallbackSpy = spy({ callback: () => 'foobar' }); expect(CallbackSpy.callback()).toHaveBeenCalled() ```
https://github.com/TypeStrong/ts-mockito/pull/48
Is there a reason to no merge this? besides conflicts?
Yes, we changed the way we parse class code. I'll add this test to the ts-mockito test suite and verify that it works.
I just published [2.7.2](https://github.com/TypeStrong/ts-mockito/pull/51/commits/8a8f6244beaf1eb3088e7e7806d25e29c5ac9906), try to see if it works for you
> Works for the given test case 🎉 Unfortunately there is another error for anonymous classes: > > ``` > Serialized Error: { code: 'BABEL_PARSER_SYNTAX_ERROR', reasonCode: 'MissingClassName', loc: { line:...