mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-26 16:41:21 +01:00
test: check contents of config.json in tests
This commit is contained in:
@@ -26,6 +26,15 @@ winston.add(new winston.transports.Console({
|
|||||||
),
|
),
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
try {
|
||||||
|
const fs = require('fs');
|
||||||
|
const configJSON = fs.readFileSync(path.join(__dirname, '../../config.json'), 'utf-8');
|
||||||
|
console.log('configJSON', configJSON);
|
||||||
|
} catch (err) {
|
||||||
|
console.error(err.stack);
|
||||||
|
throw err;
|
||||||
|
}
|
||||||
|
|
||||||
nconf.file({ file: path.join(__dirname, '../../config.json') });
|
nconf.file({ file: path.join(__dirname, '../../config.json') });
|
||||||
nconf.defaults({
|
nconf.defaults({
|
||||||
base_dir: path.join(__dirname, '../..'),
|
base_dir: path.join(__dirname, '../..'),
|
||||||
|
|||||||
Reference in New Issue
Block a user