jest-simple-dot-reporter
Advanced tools
Comparing version 1.0.3 to 1.0.5
@@ -10,3 +10,5 @@ const pluralize = (word, count) => `${count} ${word}${count === 1 ? '' : 's'}`; | ||
onRunStart(test) { | ||
console.log(); | ||
this._numTestSuitesLeft = test.numTotalTestSuites; | ||
console.log() | ||
console.log(`Found ${test.numTotalTestSuites} test suites`); | ||
@@ -28,3 +30,3 @@ } | ||
if (failureMessage) { | ||
console.log(failureMessage); | ||
console.error(failureMessage); | ||
} | ||
@@ -36,5 +38,5 @@ }); | ||
if (this._options.color) | ||
console.log(`\x1b[31m${obsoleteError}\x1b[0m`); | ||
console.error(`\x1b[31m${obsoleteError}\x1b[0m`); | ||
else | ||
console.log(obsoleteError); | ||
console.error(obsoleteError); | ||
} | ||
@@ -67,2 +69,6 @@ | ||
} | ||
if (!--this._numTestSuitesLeft && this._globalConfig.collectCoverage) { | ||
console.log() | ||
} | ||
} | ||
@@ -69,0 +75,0 @@ } |
{ | ||
"name": "jest-simple-dot-reporter", | ||
"version": "1.0.3", | ||
"version": "1.0.5", | ||
"description": "A super simple jest dot reporter, great for use within shells like emacs ;)", | ||
@@ -5,0 +5,0 @@ "main": "jest-simple-dot-reporter.js", |
@@ -22,7 +22,7 @@ # Simple dot reporter for jest | ||
module.exports = { | ||
verbose: false, | ||
reporters: [ | ||
'jest-simple-dot-reporter' | ||
"verbose": false, | ||
"reporters": [ | ||
["jest-simple-dot-reporter", {"color": true}] | ||
] | ||
}; | ||
``` |
3600
61