I wrote a RESTful web API for a side project of mine (https://wintermute.design), and I tested it using mocha and chai (the API is written in express JS). But recently I read different articles which advise against such practice and recommend using mocks instead. What's your opinion on this ? How would you go about testing your own API if you had to write one today ?
Mocha + Chai along with Sinon (<a href="http://sinonjs.org/" rel="nofollow">http://sinonjs.org/</a>) for stubbing and mocking.