visionmedia/mocha — pull request #835 by aearly (2013-05-05 00:26:16+00:00)
Title: Prevent subsequent hooks from being called if we are `--bail`ing.

Fixes #690. I also added an example hook to `test-bail`. Currently mocha skips only the subsequent tests if there are failures and `bail` is set. This adds that logic to hooks as well.