Skip to content

Commit

Permalink
Fix --silent --verbose problem (#4505)
Browse files Browse the repository at this point in the history
  • Loading branch information
hramezani authored and cpojer committed Sep 19, 2017
1 parent 95278b2 commit c05dcd5
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions packages/jest-runner/src/run_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,15 @@ export default function runTest(
);

let testConsole;
if (globalConfig.verbose) {
testConsole = new Console(consoleOut, process.stderr, consoleFormatter);
if (globalConfig.silent) {
testConsole = new NullConsole(
consoleOut,
process.stderr,
consoleFormatter,
);
} else {
if (globalConfig.silent) {
testConsole = new NullConsole(
consoleOut,
process.stderr,
consoleFormatter,
);
if (globalConfig.verbose) {
testConsole = new Console(consoleOut, process.stderr, consoleFormatter);
} else {
testConsole = new BufferedConsole();
}
Expand Down

0 comments on commit c05dcd5

Please sign in to comment.