mirror of
https://github.com/mempool/mempool.git
synced 2025-02-23 22:46:54 +01:00
Add rerouting logic for testnet4 tests Split CI e2e workflow matrix into mempool, liquid and testnet4
12 lines
490 B
JavaScript
12 lines
490 B
JavaScript
const fs = require('fs');
|
|
|
|
let PROXY_CONFIG = require('./proxy.conf');
|
|
|
|
PROXY_CONFIG.forEach(entry => {
|
|
const hostname = process.env.CYPRESS_REROUTE_TESTNET === 'true' ? 'mempool-staging.fra.mempool.space' : 'node201.fmt.mempool.space';
|
|
console.log(`e2e tests running against ${hostname}`);
|
|
entry.target = entry.target.replace("mempool.space", hostname);
|
|
entry.target = entry.target.replace("liquid.network", "liquid-staging.fmt.mempool.space");
|
|
});
|
|
|
|
module.exports = PROXY_CONFIG;
|