re: Is easier to do TDD for your dependencies after you have designed their API using mocks VIEW POST

re: Hi change, I will try to explain a little more... Why the .call, no calling? I am not sure if I am understanding this question... but if you ar...

I know your idea is writing a mock test to get a tested API, then do real test when needed.

Your sample is really a little complicated for me, I read several times and not follow fully.

Ups... sorry 😳 ... which part do you think that is more complicated?

Hi Chenge... I tried to simplify and remove stuff from the example, that I think is not need to share the idea.

Thanks, I try to read once more. =)

It's clear more now.

I think best include full code or simplify code to be full. If you miss some method that'll be hard to follow.

Code of Conduct Report abuse