UNPKG

testeranto

Version:

the AI powered BDD test framework for typescript projects

19 lines (18 loc) 634 B
export default function (results) { return results .filter((r) => r.messages.length) .map((r) => { const path = r.filePath.replace(process.cwd() + "/", ""); return [ path, ...r.messages.map((m) => { var _a; return [ `${m.line}:${m.column} ${m.message} (${m.ruleId || ""})`, ...(((_a = m.suggestions) === null || _a === void 0 ? void 0 : _a.map((s) => `- ${s.message}${s.fix ? " (fix)" : ""}`)) || []), ].join("\n"); }), ].join("\n"); }) .join("\n\n"); }