Skip to content

Commit 8abaaa1

Browse files
committed
fix(e2e): use production server in ci
- Use pnpm start instead of pnpm dev in CI - Change test:e2e to depend on build (not ^build)
1 parent 182ff9c commit 8abaaa1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

apps/nextjs/playwright.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export default defineConfig({
1919
},
2020
],
2121
webServer: {
22-
command: "pnpm dev",
22+
command: process.env.CI ? "pnpm start" : "pnpm dev",
2323
url: "http://localhost:3000",
2424
reuseExistingServer: !process.env.CI,
2525
timeout: 120000,

turbo.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"cache": false
4242
},
4343
"test:e2e": {
44-
"dependsOn": ["^build"],
44+
"dependsOn": ["build"],
4545
"cache": false,
4646
"env": ["DATABASE_URL"]
4747
},

0 commit comments

Comments
 (0)