mirror of
https://github.com/Retropex/mempool.git
synced 2025-05-12 18:20:41 +02:00

Add rerouting logic for testnet4 tests Split CI e2e workflow matrix into mempool, liquid and testnet4
13 lines
490 B
JavaScript
13 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;
|