Skip to main content

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

ParameterTypeDescription
coverageSummaryPathstringrelative path to the coverage summary. Defaults to './coverage/coverage-summary.json'.

Returns

BettererCoverageTest