Mocha+Chai: Writing a reusable Test Suite for an expressjs/mongoose API
Too Long; Didn't Read
Mocha+Chai: Writing a reusable Test Suite for an expressjs/mongoose API. This article assumes you have an app running alongside a MongoDB server using the mongoose library. We’re focused on testing it. We create a single module; we can put the repetitive clutter from all our tests into a single place. The result of this article is a reusable test suite that can be used to test your expressjs app. It's not dissimilar with a lot of repetitive and cluttered tests.