Skip to content

Node.js based forum software built for the modern web

test: check contents of config.json in tests

Barış Soner Uşaklı32f693019bdf
diff --git a/test/mocks/databasemock.js b/test/mocks/databasemock.js
index 414cb7cfdd..e3520378d2 100644
--- a/test/mocks/databasemock.js
+++ b/test/mocks/databasemock.js
@@ -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.defaults({
base_dir: path.join(__dirname, '../..'),