How hyperz111/ntcrep works
ntcrep is a small node:test coverage reporter. Its workflow consumes coverage events, converts their line-based data to Istanbul’s structure, then creates and executes a selected Istanbul report in the configured output directory. The conversion and reporting calls are visible in src/index.js and src/to-istanbul.js; the runner-to-reporter and generated-report workflow are documented in the README.
Main entry points: index.js Reporter transform · to-istanbul.js Istanbul converter
Components 7
Coverage input
- Reporter transform
src/index.js
Coverage conversion
- Istanbul converter
src/to-istanbul.js
Report generation
- Istanbul coverage map
- Report context
- Istanbul report
- Report directory
Other components
- node:test runner
Connections 6
- node:test runner → Reporter transform: sends coverage events
README.md - Reporter transform → Istanbul converter: converts coverage
src/index.js - Reporter transform → Istanbul coverage map: creates from data
src/index.js - Reporter transform → Report context: creates context
src/index.js - Reporter transform → Istanbul report: executes report
src/index.js - Istanbul report → Report directory: writes report
README.md