mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-01-27 22:59:51 -05:00
chore: storage test path fix
This commit is contained in:
parent
c6740feec3
commit
6239606ce1
2 changed files with 3 additions and 2 deletions
|
@ -1,6 +1,7 @@
|
||||||
// @flow
|
// @flow
|
||||||
|
|
||||||
import _ from 'lodash';
|
import _ from 'lodash';
|
||||||
|
import path from 'path';
|
||||||
// $FlowFixMe
|
// $FlowFixMe
|
||||||
import configExample from '../partials/config/index';
|
import configExample from '../partials/config/index';
|
||||||
import AppConfig from '../../../src/lib/config';
|
import AppConfig from '../../../src/lib/config';
|
||||||
|
@ -18,7 +19,7 @@ setup(configExample.logs);
|
||||||
const mockServerPort: number = 55548;
|
const mockServerPort: number = 55548;
|
||||||
const generateStorage = async function(port = mockServerPort, configDefault = configExample) {
|
const generateStorage = async function(port = mockServerPort, configDefault = configExample) {
|
||||||
const storageConfig = _.clone(configDefault);
|
const storageConfig = _.clone(configDefault);
|
||||||
const storage = `./unit/partials/store/test-storage-store.spec`;
|
const storage = path.join(__dirname, '../partials/store/test-storage-store.spec');
|
||||||
storageConfig.self_path = __dirname;
|
storageConfig.self_path = __dirname;
|
||||||
storageConfig.storage = storage;
|
storageConfig.storage = storage;
|
||||||
storageConfig.uplinks = {
|
storageConfig.uplinks = {
|
||||||
|
|
|
@ -52,7 +52,7 @@ const config = {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
logs: [
|
logs: [
|
||||||
{type: 'stdout', format: 'pretty', level: 'info'},
|
{type: 'stdout', format: 'pretty', level: 'warn'},
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue