thunk-mocha
Enable support for generators in Mocha with backward compatibility.
It is similar to Co Mocha, but it is a different implementation and more powerful. It is a perfect patch for mocha!
Installation
npm install thunk-mocha
Usage
Call by mocha in CLI:
mocha -r thunk-mocha
Call in js file:
// make sure that `mocha` have loaded// or: require('thunk-mocha')(require('mocha'))
Example
After patched, mocha support: