All files / src/reporter json.ts

0% Statements 0/5
100% Branches 0/0
0% Functions 0/3
0% Lines 0/4
1 2 3 4 5 6 7 8 9                 
import { Reporter, ReportMessage } from "./Reporter";
 
export const stringify = (comment: ReportMessage): string =>
  JSON.stringify(comment);
 
export const json: Reporter = async comments => {
  comments.map(stringify).forEach(msg => console.log(msg));
};