UNPKG

442 BPlain TextView Raw
1import istanbulReports from "istanbul-reports";
2import { StreamReporter, VinylReporter } from "../reporter";
3import { toVinylOnlyReporter, wrapStreamReporter } from "../wrap-istanbul-reporter";
4
5export function createTextReporter(): StreamReporter {
6 return wrapStreamReporter(istanbulReports.create("text"));
7}
8
9export function createTextFileReporter(): VinylReporter {
10 return toVinylOnlyReporter(createTextReporter(), "coverage.txt");
11}