UNPKG

443 BPlain TextView Raw
1import istanbulReports from "istanbul-reports";
2import { StreamReporter, VinylReporter } from "../reporter";
3import { toVinylOnlyReporter, wrapStreamReporter } from "../wrap-istanbul-reporter";
4
5export function createLcovReporter(): StreamReporter {
6 return wrapStreamReporter(istanbulReports.create("lcovonly"));
7}
8
9export function createLcovFileReporter(): VinylReporter {
10 return toVinylOnlyReporter(createLcovReporter(), "lcov.info");
11}