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!
npm install thunk-mocha
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'))
After patched, mocha support: