@skills17/test-result-printer
Advanced tools
Comparing version 1.0.3 to 2.0.0
@@ -61,3 +61,3 @@ "use strict"; | ||
group.getTests().forEach(test => { | ||
let resultText = 'ok'; | ||
let resultText = ''; | ||
let resultColor = _chalk.green; | ||
@@ -67,7 +67,6 @@ let resultSymbol = _figures.tick; | ||
if (test.requiresManualCheck()) { | ||
resultText = 'please check manually for static return values and/or logical errors'; | ||
resultText = ' please check manually for static return values and/or logical errors'; | ||
resultColor = _chalk.yellow; | ||
resultSymbol = '?'; | ||
} else if (!test.isSuccessful()) { | ||
resultText = 'failed'; | ||
resultColor = _chalk.red; | ||
@@ -78,4 +77,3 @@ resultSymbol = _figures.cross; | ||
const symbol = (0, _chalk.bold)(resultColor(resultSymbol)); | ||
const warning = resultSymbol === '?' ? (0, _chalk.yellow)(' WARNING:') : ''; | ||
printer(` ${symbol} ${test.getName()}${(0, _chalk.blue)(':')}${warning} ${resultText}`); | ||
printer(` ${symbol} ${test.getName()}${resultColor(resultText)}`); | ||
}); | ||
@@ -115,3 +113,3 @@ }); // print footer | ||
if (this.run.getUngroupedTests().length > 0) { | ||
if (this.run.hasExtraTest() && this.run.getUngroupedTests().length > 0) { | ||
this.printTestWarning('The following tests do not belong to a group and were ignored:', this.run.getUngroupedTests(), printer); | ||
@@ -118,0 +116,0 @@ } |
{ | ||
"name": "@skills17/test-result-printer", | ||
"version": "1.0.3", | ||
"version": "2.0.0", | ||
"description": "Prints test results in a nice format to the console.", | ||
@@ -50,3 +50,3 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@skills17/test-result": "^1.0.2", | ||
"@skills17/test-result": "^2.0.0", | ||
"chalk": "^4.1.0", | ||
@@ -53,0 +53,0 @@ "figures": "^3.2.0" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9014
121
1
+ Added@skills17/test-result@2.1.0(transitive)
- Removed@skills17/test-result@1.0.2(transitive)
Updated@skills17/test-result@^2.0.0