I am starting in node.js unit testing, and I have been investigating which was the most used framework for unit tests in node.js. I'd like to start with the most used framework just to makes things easier as there might be more information about it. According to many sites that could be Mocha.
While I understand this module for doing integration tests I don't really know how to work with it by using feautures like stubbing dependencies. I have seen mocha doesn't provide mock/stub functionalities, so I don't really know how people usually deal with these problems.
So I'd like to know what modules are the most popular nowadays for doing unit tests, stubbing dependencies... A short example would be great.
Thanks