Unit Testing Express Middleware / TDD with Express and Mocha

Even for JavaScript software developers well-versed in Agile practices, using test-driven development in and Express can be challenging. In this presentation, I identify solutions to some of the most significant challenges to using TDD with Express, including mocking data in MongoDB / Mongoose, using promises to control asynchronous testing in Mocha with Chai, and separating concerns to write robust and enduring test suites. A relatively similar slide deck is available here:
Back to Top