Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@skills17/test-result-printer

Package Overview
Dependencies
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@skills17/test-result-printer - npm Package Compare versions

Comparing version 1.0.3 to 2.0.0

10

lib/Printer.js

@@ -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 @@ }

4

package.json
{
"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"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc