Socket
Socket
Sign inDemoInstall

@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

Prints test results in a nice format to the console.


Version published
Weekly downloads
5
increased by400%
Maintainers
2
Weekly downloads
 
Created
Source

skills17/test-result-printer

Prints test results in a nice format to the console.

Table of contents

  • Installation
  • Usage
  • License

Installation

npm install @skills17/test-result-printer

Usage

A TestRun instance of the @skills17/test-result package can be passed to the Printer constructor.

import Printer from '@skills17/test-result-printer';

const printer = new Printer(testRun);
printer.print();

The result will be printed to the standard output.

Additionally, the print method supports an optional options parameter:

{
  // use a different printing function (defaults to console.log)
  printer?: (...data: string[]) => void;

  // if the header should be printed or not (defaults to true)
  printHeader?: boolean;

  // if the footer should be printed or not (defaults to false)
  printFooter?: boolean;
}

License

MIT

FAQs

Package last updated on 11 Jan 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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