test(e2e): make parity runners environment-safe

This commit is contained in:
Hide_D committed 2026-07-31 18:17:54 +00:00
1 parent ab0c050847
commit 62152ba8d9
7 files changed
+63 -33

No files matched your search

+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}`;