danielstjules / mocha.parallel

Run async mocha specs in parallel
MIT License
197 stars 20 forks source link

Fix crash when there are no exception listeners #22

Closed hach-que closed 7 years ago

hach-que commented 8 years ago

I ran into a crash when the process had no exception listeners registered. Roughly I was doing something like this:

before(function(callback) { /* ... */ callback(); });
after(function(callback) { /* ... */ callback(); });

parallel(function() {
  // parallel tests as normal
});
danielstjules commented 7 years ago

Thanks! Added in https://github.com/danielstjules/mocha.parallel/commit/963f0b8ecb81494524fcf9a5f170412516bd2559