From eaefd601414ea755faad04b2f648e1ce6fcd3e53 Mon Sep 17 00:00:00 2001 From: Nassim Tabchiche Date: Thu, 3 Oct 2024 17:35:57 +0200 Subject: [PATCH] Exclude build step from playwright webserver command --- frontend/playwright.config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/playwright.config.ts b/frontend/playwright.config.ts index 85cedf92e..7a4323666 100644 --- a/frontend/playwright.config.ts +++ b/frontend/playwright.config.ts @@ -5,9 +5,9 @@ const config: PlaywrightTestConfig = { webServer: { command: process.env.COMPOSE_TEST ? 'echo "The docker compose frontend server didn\'t start correctly"' - : 'npm install -g pnpm && pnpm install && pnpm run build && pnpm run preview', + : 'pnpm run preview', port: process.env.COMPOSE_TEST ? 3000 : 4173, - reuseExistingServer: process.env.COMPOSE_TEST + reuseExistingServer: !process.env.CI }, testDir: 'tests', outputDir: 'tests/results',