CLI tool to convert Jest text coverage output into Reviewdog-compatible format. Current stable version 1.0.2, actively maintained. Supports any Jest text coverage output file; transforms summary table into line-by-line annotations Reviewdog can parse. Key differentiator: enables CI integration with Reviewdog for coverage diff annotations without custom parsing scripts.
npm install jest-text-formatterNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Install, generate Jest text coverage, convert to Reviewdog format with source root path.
Redirect stderr separately: `npx jest --coverage --coverageReporters='text' 2>/dev/null > coverage.txt`
Use `pwd` or `${process.cwd()}` to provide absolute path.Create directory beforehand: `mkdir -p ./outputPath`
Verify paths and create directories: `mkdir -p $(dirname ./outputPath/coverage.txt)`
Ensure Jest coverage reporter is 'text' and no other output is mixed in. Run `npx jest --coverage --coverageReporters='text' > coverage.txt`
Wrap root path in quotes: `npx format-coverage ... "/path/with spaces/root"`