UNPKG

jest-allure2-reporter

Version:
17 lines 692 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getFileNavigator = void 0; const tslib_1 = require("tslib"); const node_path_1 = tslib_1.__importDefault(require("node:path")); const utils_1 = require("../../../utils"); const getFileNavigator = () => { const cache = utils_1.FileNavigatorCache.instance; return (maybeSegmentedFilePath) => { const filePath = Array.isArray(maybeSegmentedFilePath) ? maybeSegmentedFilePath.join(node_path_1.default.sep) : maybeSegmentedFilePath; return cache.resolve(filePath); }; }; exports.getFileNavigator = getFileNavigator; //# sourceMappingURL=getFileNavigator.js.map