test(e2e): make parity runners environment-safe

This commit is contained in:
2026-07-31 18:17:54 +00:00
parent ab0c050847
commit 62152ba8d9
7 changed files with 63 additions and 33 deletions
+7
View File
@@ -0,0 +1,7 @@
const gatewayPort = process.env.FRONTEND_PARITY_GATEWAY_PORT ?? '15100';
const gamePort = process.env.FRONTEND_PARITY_GAME_PORT ?? '15102';
export const gatewayOrigin = `http://127.0.0.1:${gatewayPort}`;
export const gameOrigin = `http://127.0.0.1:${gamePort}`;
export const gatewayUrl = (suffix = '/'): string => `${gatewayOrigin}/gateway${suffix}`;
export const gameUrl = (suffix = '/'): string => `${gameOrigin}/che${suffix}`;