Update e2e tests BASE_MODULE resolution

This commit is contained in:
Felipe Knorr Kuhn committed 2021-10-27 20:40:44 -07:00
1 parent 12b3246404
commit 6e4ee8ffa2
8 files changed
+70 -44

No files matched your search

+14 -1
View File
@@ -1 +1,14 @@
module.exports = (on, config) => {}
const fs = require('fs');
const CONFIG_FILE = 'mempool-frontend-config.json';
module.exports = (on, config) => {
if (fs.existsSync(CONFIG_FILE)) {
let contents = JSON.parse(fs.readFileSync(CONFIG_FILE, 'utf8'));
console.log(contents);
config.env.BASE_MODULE = contents.BASE_MODULE;
} else {
config.env.BASE_MODULE = 'mempool';
}
return config;
}