github NagRock/ts-mockito v2.4.0
Support for interfaces

latest releases: v2.6.1, v2.6.0, v2.5.0...
4 years ago

It took a lot of time but... looks like we've got support for interfaces 🎉

Simply use generic type for mock function and omit argument for it:

let mockedInterface: MyInterface = mock<MyInterface>();

Great thanks for @johanblumenberg who created first implementation and pushed me to support interfaces. Thanks for your patience.

Don't miss a new ts-mockito release

NewReleases is sending notifications on new releases.