Mocha crashed when reporting errors:
describe ( 'test', function () {
it ( '#asyncCall()', function ( done ) {
someAsyncCall ( function ( err ) {
done ( err ? new Error ( err + '' ) : null );
});
});
});
Sorry, I don't think this is an issue with mocha!
describe('suite', function() {
it('test', function(done) {
setTimeout(function() {
done(new Error('foo'));
});
});
it('test2', function() {});
});
$ mocha example.js
suite
1) test
✓ test2
1 passing (13ms)
1 failing
1) suite test:
Error: foo
at null._onTimeout (example.js:4:12)
use the --bail option
Most helpful comment
use the --bail option