2 * Copyright 2003-present Greg Hurrell. All rights reserved.
3 * Licensed under the terms of the MIT license.
6 var Base = require('mocha').reporters.Base;
9 * Like the "min" reporter that comes with Mocha[0], but doesn't clear the
12 * @see https://github.com/mochajs/mocha/blob/master/lib/reporters/min.js
13 * @see https://github.com/mochajs/mocha/wiki/Third-party-reporters
15 function WatchReporter(runner) {
17 Base.call(this, runner);
18 runner.on('end', function() {
19 if (this.stats.failures) {
20 Base.prototype.epilogue.call(self);
25 module.exports = WatchReporter;