Spies and Stubs in NodeJS
Reading Time: 3 minutes Hi folks, my last two blogs we discussed about how we can use monkey-patching to test complex code logic which could be difficult to test if it is not used, along with that we also looked over how can stub or mock behaviours of our dependencies using sinon, in this blog we would be exploring more utilities provided by sinon i.e; Spies and Stubs. Spies Continue Reading