jest-text-formatter

1.0.2 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    327
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    327
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i jest-text-formatter

Weekly Downloads

327

Version

1.0.2

License

MIT

Unpacked Size

14 kB

Total Files

6

Last publish

Collaborators

  • flovaldes