UNPKG

tia

Version:

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

26 lines 988 B
"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 _ = __importStar(require("lodash")); const nodeUtils = __importStar(require("./nodejs-utils")); // Returns merged config for suite. function handleSuiteConfig() { let localSuiteConfig = {}; // TODO: current suite dir. try { localSuiteConfig = nodeUtils.requireEx(gIn.suite.configPath, true).result; } catch (e) { gIn.tracer.msg2(e); gIn.tracer.msg2(`There is no Suite Config: ${gIn.suite.configPath}`); } gT.suiteConfig = _.merge(_.cloneDeep(gT.rootSuiteConfig), localSuiteConfig); } exports.handleSuiteConfig = handleSuiteConfig; //# sourceMappingURL=config-utils.js.map