@itwin/certa
Version:
A mocha-based integration test runner
13 lines • 863 B
TypeScript
/**
* Helper function for relaunching (as a child process) the current process running under `nyc` for measuring code coverage.
* Once that completes, a second `nyc` child process will be spawned to report the coverage results.
* Returns a promise that will be resolved with either 0 or the first non-zero child process exit code, once the reporter process terminates.
*/
export declare function relaunchForCoverage(): Promise<number>;
/**
* Writes nyc or istanbul-generated coverage data to a uniquely-named file inside `nyc`'s temp directory.
* All such files in the nyc temp directory are merged together when nyc reports are generated via `nyc report`.
* @param coverageData The value of an nyc/istanbul-generated `__coverage__` object.
*/
export declare function writeCoverageData(coverageData: any): void;
//# sourceMappingURL=CoverageUtils.d.ts.map