1
0
forked from baron/baron-sso

perf(ci): use vite build and preview in playwright to speed up E2E tests

This commit is contained in:
2026-04-03 10:08:14 +09:00
parent e200f4a59a
commit 8dacb9ddba
2 changed files with 2 additions and 2 deletions

View File

@@ -61,7 +61,7 @@ export default defineConfig({
/* Run your local dev server before starting the tests */
webServer: {
command: "npm run dev",
command: process.env.CI ? "npm run build && npm run preview -- --port 5173" : "npm run dev",
url: "http://localhost:5173",
reuseExistingServer: !process.env.CI,
timeout: 120 * 1000,

View File

@@ -56,7 +56,7 @@ export default defineConfig({
/* Run your local dev server before starting the tests */
webServer: {
command: "npm run dev -- --port 5174",
command: process.env.CI ? "npm run build && npm run preview -- --port 5174" : "npm run dev -- --port 5174",
url: "http://localhost:5174",
reuseExistingServer: !process.env.CI,
},