coverage()
API > @betterer/coverage > coverage
Use this test to track your per-file test coverage. Reads a json-summary format coverage summary. Make sure to run your tests separately before running Betterer.
Signature
export declare function coverage(coverageSummaryPath?: string): BettererCoverageTest;
Parameters
Parameter | Type | Description |
---|---|---|
coverageSummaryPath | string | relative path to the coverage summary. Defaults to './coverage/coverage-summary.json'. |