Skip to content

Commit

Permalink
Merge mini and verbose reporter implementations
Browse files Browse the repository at this point in the history
Co-authored-by: Mark Wubben <mark@novemberborn.net>
  • Loading branch information
m5x5 and novemberborn committed Jun 14, 2020
1 parent f5e1f94 commit b3866b6
Show file tree
Hide file tree
Showing 6 changed files with 915 additions and 1,116 deletions.
15 changes: 4 additions & 11 deletions lib/cli.js
Expand Up @@ -259,8 +259,7 @@ exports.run = async () => { // eslint-disable-line complexity

const ciParallelVars = require('ci-parallel-vars');
const Api = require('./api');
const VerboseReporter = require('./reporters/verbose');
const MiniReporter = require('./reporters/mini');
const DefaultReporter = require('./reporters/default');
const TapReporter = require('./reporters/tap');
const Watcher = require('./watcher');
const normalizeExtensions = require('./extensions');
Expand Down Expand Up @@ -391,19 +390,13 @@ exports.run = async () => { // eslint-disable-line complexity
reportStream: process.stdout,
stdStream: process.stderr
});
} else if (debug !== null || combined.verbose || isCi || !process.stdout.isTTY) {
reporter = new VerboseReporter({
projectDir,
reportStream: process.stdout,
stdStream: process.stderr,
watching: combined.watch
});
} else {
reporter = new MiniReporter({
reporter = new DefaultReporter({
projectDir,
reportStream: process.stdout,
stdStream: process.stderr,
watching: combined.watch
watching: combined.watch,
verbose: debug !== null || combined.verbose || isCi || !process.stdout.isTTY
});
}

Expand Down

0 comments on commit b3866b6

Please sign in to comment.