🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

jest-text-formatter

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jest-text-formatter

Package to convert Jest coverage output files to a format readable by Reviewdog

1.0.2
latest
Version published
Weekly downloads
776
55.82%
Maintainers
1
Weekly downloads
 
Created

Jest Coverage Formatter

Library to convert Jest coverage output files to a format readable by Reviewdog.

Installation

npm install jest-text-formatter --save-dev
# or
yarn add jest-text-formatter --dev

Usage

First run Jest with file output. Make sure to have coverage reporters set to ["text"].

For example:

yarn test > coverage.txt

Then run Jest Coverage Formatter

format-coverage ./coverage.txt ./outputPath/coverage.txt /root/path

It will save the output to ./outputPath/coverage.txt

FAQs

Package last updated on 03 Jun 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