UNPKG

@n1k1t/unit-generator

Version:

Coverage based unit tests AI generator

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