Tag Archives: rewire

sinon vs rewire: when do I use which?

In node.js testing, there are 2 helper modules that I use often: sinon and rewire. Sinon allows you to monkey-patch functions, while rewire allows you to… monkey-patch functions. Both modules have other uses as well, but in this post I’m … Continue reading

Posted in JavaScript, node.js, software development, testing | Tagged , , , , , , , | 1 Comment