UNPKG

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