Unit Testing Express Middleware / TDD with Express and Mocha



Even for JavaScript software developers well-versed in Agile practices, using test-driven development in Node.js 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: http://www.slideshare.net/morrissinger/unit-testing-express-middleware
Questions: http://linkedin.com/in/morrissinger

source

Reply


Build A Site Info