| 1 | "use strict"; |
| 2 | |
| 3 | /** |
| 4 | * @typedef {import('../runner.js')} Runner |
| 5 | */ |
| 6 | |
| 7 | /** |
| 8 | * @module Min |
| 9 | */ |
| 10 | /** |
| 11 | * Module dependencies. |
| 12 | */ |
| 13 | |
| 14 | var Basescip-typescript npm mocha 11.7.7 lib/reporters/`min.js`/Base. = require("./base"scip-typescript npm mocha 11.7.7 lib/reporters/`base.js`/); |
| 15 | var inheritsscip-typescript npm mocha 11.7.7 lib/reporters/`min.js`/inherits. = require("../utils"scip-typescript npm mocha 11.7.7 lib/`utils.js`/).inherits; |
| 16 | var constantsscip-typescript npm mocha 11.7.7 lib/reporters/`min.js`/constants. = require("../runner"scip-typescript npm mocha 11.7.7 lib/`runner.js`/).constants; |
| 17 | var EVENT_RUN_ENDscip-typescript npm mocha 11.7.7 lib/reporters/`min.js`/EVENT_RUN_END. = constants.EVENT_RUN_END; |
| 18 | var EVENT_RUN_BEGINscip-typescript npm mocha 11.7.7 lib/reporters/`min.js`/EVENT_RUN_BEGIN. = constants.EVENT_RUN_BEGIN; |
| 19 | |
| 20 | /** |
| 21 | * Expose `Min`. |
| 22 | */ |
| 23 | |
| 24 | exportsscip-typescript npm mocha 11.7.7 lib/reporters/`min.js`/ = module.exports = Minscip-typescript npm mocha 11.7.7 lib/reporters/`min.js`/Min().; |
| 25 | |
| 26 | /** |
| 27 | * Constructs a new `Min` reporter instance. |
| 28 | * |
| 29 | * @description |
| 30 | * This minimal test reporter is best used with '--watch'. |
| 31 | * |
| 32 | * @public |
| 33 | * @class |
| 34 | * @memberof Mocha.reporters |
| 35 | * @extends Mocha.reporters.Base |
| 36 | * @param {Runner} runner - Instance triggers reporter actions. |
| 37 | * @param {Object} [options] - runner options |
| 38 | */ |
| 39 | function Minscip-typescript npm mocha 11.7.7 lib/reporters/`min.js`/Min().(runnerscip-typescript npm mocha 11.7.7 lib/reporters/`min.js`/Min().(runner), optionsscip-typescript npm mocha 11.7.7 lib/reporters/`min.js`/Min().(options)) { |
| 40 | Basescip-typescript npm mocha 11.7.7 lib/reporters/`base.js`/Base()..callscip-typescript npm typescript 5.9.3 lib/`lib.es5.d.ts`/Function#call().(this, runnerscip-typescript npm mocha 11.7.7 lib/reporters/`min.js`/Min().(runner), optionsscip-typescript npm mocha 11.7.7 lib/reporters/`min.js`/Min().(options)); |
| 41 | |
| 42 | runnerscip-typescript npm mocha 11.7.7 lib/reporters/`min.js`/Min().(runner).on(EVENT_RUN_BEGINscip-typescript npm mocha 11.7.7 lib/reporters/`min.js`/EVENT_RUN_BEGIN., function () { |
| 43 | // clear screen |
| 44 | process.stdout.write("\u001b[2J"); |
| 45 | // set cursor position |
| 46 | process.stdout.write("\u001b[1;3H"); |
| 47 | }); |
| 48 | |
| 49 | runnerscip-typescript npm mocha 11.7.7 lib/reporters/`min.js`/Min().(runner).once(EVENT_RUN_ENDscip-typescript npm mocha 11.7.7 lib/reporters/`min.js`/EVENT_RUN_END., this.epilogue.bind(this)); |
| 50 | } |
| 51 | |
| 52 | /** |
| 53 | * Inherit from `Base.prototype`. |
| 54 | */ |
| 55 | inheritsscip-typescript npm mocha 11.7.7 lib/reporters/`min.js`/inherits.(Minscip-typescript npm mocha 11.7.7 lib/reporters/`min.js`/Min()., Basescip-typescript npm mocha 11.7.7 lib/reporters/`base.js`/Base().); |
| 56 | |
| 57 | Minscip-typescript npm mocha 11.7.7 lib/reporters/`min.js`/Min()..description = "essentially just a summary"; |