You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

js-diff-analyzer

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

js-diff-analyzer

Uses [Istanbul](https://istanbul.js.org/) code coverage reports to check if all of your changed code is covered by unit tests

0.0.3
latest
npm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

js-diff-analyzer

Uses Istanbul code coverage reports to check if all of your changed code is covered by unit tests

Install

$ npm install -g js-diff-analyzer

or

$ yarn global add js-diff-analyzer

Usage

Run your tests in your project. Create coverage output via Istanbul in the json format. I.e. for Jest:

$ jest --coverageReporters ['json'] --collectCoverage true --coverageDirectory './coverage'

Then analyze the coverage report using js-diff-analyzer:

$ js-diff-analyzer -r './' -c './coverage'

This will output uncovered lines like this:

Changes on your branch are not covered:
app/src/renderer/components/common/AppHeader.vue (Lines: 35, 36 )
app/src/renderer/components/staking/PageBond.vue (Lines: 268, 269, 270, 271 )
app/src/renderer/components/staking/PageStaking.vue (Lines: 175, 176 )

FAQs

Package last updated on 23 Jul 2018

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