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

coverage-inspect

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

coverage-inspect

Node.js App running code coverage inspect

  • 1.0.12
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-66.67%
Maintainers
1
Weekly downloads
 
Created
Source

Coverage Inspect

Node.js Runing code coverage inspect.

Installation

yarn add coverage-inspect

npm install coverage-inspect [--save]

Usage

impprt { Inspector } from 'coverage-inspect';

const inspector = new Inspector(config: Config);

inspector.start();  // start code coverage check

....

inspector.collect(); // coverage collect

inspector.dump(); // dump coverage data, file will dump to path: ${project}/coverage/tmp

Type Config

type Config = {
    exclude?: string[];  // file exclude, default: ['internal/**', 'node_modules/**']
    include?: string[];  // file include, default: ['file:**']

    enable?: boolean;    // enable code coverage inspect?, default: true

    reportHtml?: boolean;// convert dump data to html, default: false
    reportInclude?: string[];// report include file dirs, default: []
    reportExclude?: string[];// report exclude file dirs, default: []
}

Keywords

FAQs

Package last updated on 15 Mar 2022

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