One may ask: do we really need a special tool for creating mock objects in TypeScript, while there are several robust libraries written in JavaScript? We can use Mocha or Jasmine as a test framework, we can also use Karma and Chai—they’re all JavaScript libraries and work successfully, so why can’t we use Sinon.JS for mocking? It’s all about typesDeveloping a quite large application (over 500 clas
![When it comes to mocking in TypeScript…](https://cdn-ak-scissors.b.st-hatena.com/image/square/5ecaa0721b5caf074e633339312895c782dd96c1/height=288;version=1;width=512/https%3A%2F%2Fmiro.medium.com%2Fv2%2Fresize%3Afit%3A1200%2F1%2AdW_F5hyTy1t-XwpLVLu2Bw.png)