Now we can use: reset(firstMock, secondMock, thirdMock), resetCalls(firstMock, secondMock, thirdMock)
Unclaimed project
Are you a maintainer of ts-mockito? Claim this project to take control of your public changelog and roadmap.
Now we can use: reset(firstMock, secondMock, thirdMock), resetCalls(firstMock, secondMock, thirdMock)
Thanks to @bricka we got support for deepEqual matcher.
If provided arguments to deepEqual matcher are compatible no action is required.
But this update can cause compilation errors on existing code if provided values to deepEqual type is not compatible. For example if expected param has more fields than provided one.
For easy migration you can use Partial class.
Before:
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.
Fixed: https://github.com/NagRock/ts-mockito/issues/107
Thanks to @johanblumenberg we got great new feature:
https://github.com/NagRock/ts-mockito#resolving--rejecting-promises