All files / Cognigy-CLI/build/utils findConfig.js

90% Statements 9/10
57.14% Branches 4/7
100% Functions 2/2
90% Lines 9/10

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15  1x 1x 1x 1x 1x 1x 11x       1x   1x  
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.findConfig = void 0;
const findConfig = () => {
    let result = './config.json';
    Eif (process.argv) {
        process.argv.forEach((arg, index) => {
            Iif (arg === '-c' || (arg === '--config' && process.argv[index + 1]))
                result = process.argv[index + 1];
        });
    }
    return result;
};
exports.findConfig = findConfig;