0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-23 22:27:34 -05:00
verdaccio/test/unit/partials/config/index.js

13 lines
339 B
JavaScript
Raw Normal View History

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);
}