New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

xunit-coverage

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xunit-coverage

Library for chek test coverage

latest
Source
npmnpm
Version
1.1.1
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

#XUNIT: check test coverage

install module:

yarn add -D xunit-coverage

check coverage from file

const runCoverageTest = require('xunit-coverage')
runCoverageTest('./src', '.js', '.test.js')

check coverage from package.json script

{
    "scripts": {
        "test:coverage": "node ./node_modules/xunit-coverage ./src .js .spec.js"
    }       
}

FAQs

Package last updated on 01 Nov 2020

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