UNPKG

tia

Version:

Time is All (logs driven test engine with ExtJs support)

27 lines 1.13 kB
"use strict"; var __importStar = (this && this.__importStar) || function (mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; result["default"] = mod; return result; }; Object.defineProperty(exports, "__esModule", { value: true }); const path = __importStar(require("path")); const fileUtils = __importStar(require("./file-utils")); const fs_1 = require("fs"); function getNoEtalonTestsInfoPath() { const noEtalonTestsPath = path.join(gIn.suite.root, gT.engineConsts.suiteResDirName, gT.engineConsts.noEtalonTests); return noEtalonTestsPath; } exports.getNoEtalonTestsInfoPath = getNoEtalonTestsInfoPath; function saveNewTestInfo(testPath) { const pathToAdd = path.relative(gIn.suite.root, testPath); fs_1.appendFileSync(getNoEtalonTestsInfoPath(), `${pathToAdd}\n`, 'utf8'); } exports.saveNewTestInfo = saveNewTestInfo; function rmNewTestsInfo() { fileUtils.safeUnlink(getNoEtalonTestsInfoPath()); } exports.rmNewTestsInfo = rmNewTestsInfo; //# sourceMappingURL=suite-utils.js.map