forked from baron/baron-sso
perf(ci): use vite build and preview in playwright to speed up E2E tests
This commit is contained in:
@@ -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,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user