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