☕️ Classic, reliable, trusted test framework for Node.js and the browser
Merge pull request #795 from avaly/fix-794
TJ Holowaychuk8bc84fcee540
diff --cc lib/runner.jsindex 1889794d,fd2bca52..c42e4497--- a/lib/runner.js+++ b/lib/runner.js@@@ -232,9 -232,10 +232,11 @@@ Runner.prototype.hook = function(name,function next(i) {var hook = hooks[i];if (!hook) return fn();+ if (self.failures && suite.bail()) return fn();self.currentRunnable = hook;+ hook.ctx.currentTest = self.test;+self.emit('hook', hook);hook.on('error', function(err){