Skip to content

Commit

Permalink
Exclude build step from playwright webserver command
Browse files Browse the repository at this point in the history
  • Loading branch information
nas-tabchiche committed Oct 3, 2024
1 parent 7ffe8f6 commit eaefd60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit eaefd60

Please sign in to comment.