CartoDB-SQL-API/test/helper.js

11 lines
300 B
JavaScript
Raw Normal View History

2018-10-24 21:42:33 +08:00
'use strict';
2020-12-17 18:11:49 +08:00
let configFileName = process.env.NODE_ENV;
if (process.env.CARTO_SQL_API_ENV_BASED_CONF) {
// we override the file with the one with env vars
configFileName = 'config';
}
global.settings = require(`../config/environments/${configFileName}.js`);
2016-10-12 07:41:01 +08:00
process.env.NODE_ENV = 'test';