Skip to content

Commit b3866b6

Browse files
m5x5novemberborn
andauthored
Merge mini and verbose reporter implementations
Co-authored-by: Mark Wubben <[email protected]>
1 parent f5e1f94 commit b3866b6

File tree

6 files changed

+915
-1116
lines changed

6 files changed

+915
-1116
lines changed

lib/cli.js

+4-11
Original file line numberDiff line numberDiff line change
@@ -259,8 +259,7 @@ exports.run = async () => { // eslint-disable-line complexity
259259

260260
const ciParallelVars = require('ci-parallel-vars');
261261
const Api = require('./api');
262-
const VerboseReporter = require('./reporters/verbose');
263-
const MiniReporter = require('./reporters/mini');
262+
const DefaultReporter = require('./reporters/default');
264263
const TapReporter = require('./reporters/tap');
265264
const Watcher = require('./watcher');
266265
const normalizeExtensions = require('./extensions');
@@ -391,19 +390,13 @@ exports.run = async () => { // eslint-disable-line complexity
391390
reportStream: process.stdout,
392391
stdStream: process.stderr
393392
});
394-
} else if (debug !== null || combined.verbose || isCi || !process.stdout.isTTY) {
395-
reporter = new VerboseReporter({
396-
projectDir,
397-
reportStream: process.stdout,
398-
stdStream: process.stderr,
399-
watching: combined.watch
400-
});
401393
} else {
402-
reporter = new MiniReporter({
394+
reporter = new DefaultReporter({
403395
projectDir,
404396
reportStream: process.stdout,
405397
stdStream: process.stderr,
406-
watching: combined.watch
398+
watching: combined.watch,
399+
verbose: debug !== null || combined.verbose || isCi || !process.stdout.isTTY
407400
});
408401
}
409402

0 commit comments

Comments
 (0)