gherkin-lint-ts
Version:
Gherkin features linter written in Typescript
13 lines • 646 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.printResults = void 0;
const strip_ansi_1 = __importDefault(require("strip-ansi"));
function printResults(results) {
results.forEach(result => { var _a; return (_a = result.errors) === null || _a === void 0 ? void 0 : _a.forEach(error => error.message = strip_ansi_1.default(error.message)); });
process.stdout.write(JSON.stringify(results));
}
exports.printResults = printResults;
//# sourceMappingURL=json.js.map