marchaos / jest-mock-extended

Type safe mocking extensions for Jest https://www.npmjs.com/package/jest-mock-extended
MIT License
845 stars 59 forks source link

Comparison with ts-mockito #15

Closed jgonera closed 4 years ago

jgonera commented 4 years ago

jest-mock-extended looks nice but what is the advantage of using it vs. ts-mockito?

marchaos commented 4 years ago

Well, you can't really compare the two as ts-mockito is a standalone library, whereas jest-mock-extended as the name suggests, is an extension to jest to add mocking capabilities using a jest compatible API. If you're using jest, I think the choose is obvious.

On Thu, 6 Feb 2020, 23:02 Juliusz Gonera, notifications@github.com wrote:

jest-mock-extended looks nice but what is the advantage of using it vs. ts-mockito https://github.com/NagRock/ts-mockito?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/marchaos/jest-mock-extended/issues/15?email_source=notifications&email_token=AAVBY6MA5GBSGMQ4SNDKT3LRBSJIDA5CNFSM4KRFNJN2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4ILVCUPQ, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAVBY6KTGG5EK3CHAF3B3NDRBSJIDANCNFSM4KRFNJNQ .