test(e2e): honor configured game base paths

This commit is contained in:
Hide_D committed 2026-07-31 18:08:04 +00:00
1 parent c3c1ddc0cf
commit 132baf21cc
13 files changed
+88 -72

No files matched your search

+6
View File
@@ -0,0 +1,6 @@
const normalizedBasePath = (process.env.PLAYWRIGHT_GAME_BASE_PATH ?? 'che').replace(/^\/+|\/+$/g, '');
export const gameBasePath = `/${normalizedBasePath}`;
export const gameProfile = process.env.PLAYWRIGHT_GAME_PROFILE ?? 'che:default';
export const gameTrpcRoute = `**${gameBasePath}/api/trpc/**`;
export const gamePath = (suffix = ''): string => `${gameBasePath}${suffix.startsWith('/') ? suffix : `/${suffix}`}`;