From a86d29ef16a7b3f515e47e9f25aedd16f83e5f9e Mon Sep 17 00:00:00 2001 From: DarkSky Date: Tue, 27 Dec 2022 18:15:20 +0800 Subject: [PATCH] chore: fix timeout --- playwright.config.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/playwright.config.ts b/playwright.config.ts index 068c6582e3..a4453b323b 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -28,9 +28,10 @@ const config: PlaywrightTestConfig = { workers: '100%', webServer: { - command: 'npm run dev', + command: 'pnpm build && pnpm start -p 8080', port: 8080, - reuseExistingServer: true, + timeout: 120 * 1000, + reuseExistingServer: !process.env.CI, }, };