forked from baron/baron-sso
perf(ci): use vite build and preview in playwright to speed up E2E tests
This commit is contained in:
@@ -61,7 +61,7 @@ export default defineConfig({
|
|||||||
|
|
||||||
/* Run your local dev server before starting the tests */
|
/* Run your local dev server before starting the tests */
|
||||||
webServer: {
|
webServer: {
|
||||||
command: "npm run dev",
|
command: process.env.CI ? "npm run build && npm run preview -- --port 5173" : "npm run dev",
|
||||||
url: "http://localhost:5173",
|
url: "http://localhost:5173",
|
||||||
reuseExistingServer: !process.env.CI,
|
reuseExistingServer: !process.env.CI,
|
||||||
timeout: 120 * 1000,
|
timeout: 120 * 1000,
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ export default defineConfig({
|
|||||||
|
|
||||||
/* Run your local dev server before starting the tests */
|
/* Run your local dev server before starting the tests */
|
||||||
webServer: {
|
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",
|
url: "http://localhost:5174",
|
||||||
reuseExistingServer: !process.env.CI,
|
reuseExistingServer: !process.env.CI,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user