Skip to content

Commit

Permalink
Merge pull request #2157 from jplag/report-viewer/port
Browse files Browse the repository at this point in the history
Use default vite port
  • Loading branch information
tsaglam authored Jan 24, 2025
2 parents 56197a8 + 379ff86 commit 68a2d02
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion report-viewer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"private": true,
"type": "module",
"scripts": {
"dev": "vite --port 8080",
"dev": "vite",
"build": "run-p type-check build-only",
"preview": "vite preview",
"test:unit": "vitest",
Expand Down
6 changes: 3 additions & 3 deletions report-viewer/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const config: PlaywrightTestConfig = {
/* Maximum time each action such as `click()` can take. Defaults to 0 (no limit). */
actionTimeout: 0,
/* Base URL to use in actions like `await page.goto('/')`. */
baseURL: 'http://localhost:8080',
baseURL: 'http://localhost:4173',

/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
trace: 'on-first-retry',
Expand Down Expand Up @@ -106,8 +106,8 @@ const config: PlaywrightTestConfig = {
* Use the preview server on CI for more realistic testing.
Playwright will re-use the local server if there is already a dev-server running.
*/
command: 'vite preview --port 8080',
port: 8080,
command: 'vite preview',
port: 4173,
reuseExistingServer: !process.env.CI
}
}
Expand Down

0 comments on commit 68a2d02

Please sign in to comment.