I give thee Mocha


#1

With copious servings of Chai, to boot.

I know Atom’s API for custom test-runners is still young, but I went to great lengths to abstract configuration from the API. In other words, it’s possible to have 99% of your project’s tests configured from a mocha.opts file.

I started this on impulse while getting Mocha setup for File-Icons v2. I had an itch I needed to scratch, and it wound up looking like this. In the process, I “accidentally” wrote two relevant NPM modules that prove JavaScript is one hell of a drug.

Anyway, it’d be grouse to get feedback on this. Everything’s documented on GitHub:

Please enjoy.