Mocha

Javascript Testing with Mocha, Sinon, and Chai

Javascript Testing with Mocha, Sinon, and Chai

Recently, April 24th, I presented a short talk on some of the testing tools we use here at Fluencia. Primarily, the discussion is focused on Mocha, Chai, and Sinon, which are all npm modules that can be easily incorporated into a node project. In this post I'll give a somewhat abridged discussion of the topics covered in the talk.

Here at Fluencia, we use the tools Mocha, Sinon, and Chai to test our code. The testing framework developed from these tools and the synergy between them has been easy to build and maintain, and we wanted to share that with anyone who isn't doing testing or who would like to improve their testing setup. The audience for the talk was the awesome DC jQuery meetup group, but like I note in the slides, these tools can be used for testing back-end and front-end javascript.  I'll start with a brief intro to testing in general; if you are already familiar with the concepts, you can skip the intro and dive into learning the tools.

You can see a short clip of the presentation here.  The slides can be found here and the audio can be found here.