0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-01-06 22:40:26 -05:00
verdaccio/test/unit/partials/config/index.js
2019-02-24 23:20:25 +01:00

12 lines
339 B
JavaScript

import _ from 'lodash';
import path from 'path';
import {parseConfigFile} from '../../../../src/lib/utils';
export default (options, url = 'default.yaml') => {
const locationFile = path.join(__dirname, `../config/yaml/${url}`);
const config = parseConfigFile(locationFile);
return _.assign({}, _.cloneDeep(config), options);
}