From 32f693019bdf2c8989f49ee5ed5c2d2d0ddab062 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Thu, 17 Feb 2022 14:47:23 -0500 Subject: [PATCH] test: check contents of config.json in tests --- test/mocks/databasemock.js | 9 +++++++++ 1 file changed, 9 insertions(+) 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, '../..'),