UNPKG

@n1k1t/unit-generator

Version:

Coverage based unit tests AI generator

21 lines 846 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const utils_1 = require("./utils"); const utils_2 = require("../utils"); const env_1 = __importDefault(require("../env")); exports.default = async (parameters = {}) => { const cwd = process.cwd(); const ignore = await (0, utils_1.extractIgnoredPaths)(cwd); const extracted = await (0, utils_1.extractCoberturaItems)(env_1.default.cobertura, { ignore, cwd, target: parameters.target ?? Number(env_1.default.target), limit: parameters.limit, paths: parameters.paths, }); console.table(extracted, (0, utils_2.cast)(['path', 'rate'])); }; //# sourceMappingURL=analyze.js.map