ci: 优化 Playwright 测试工作流

This commit is contained in:
严浩
2025-09-09 15:43:30 +08:00
parent 706c60ddb8
commit 88483c26e6
2 changed files with 4 additions and 3 deletions

View File

@@ -106,7 +106,7 @@ export default defineConfig({
* Use the preview server on CI for more realistic testing.
* Playwright will re-use the local server if there is already a dev-server running.
*/
command: process.env.CI ? 'npm run preview' : 'npm run dev',
command: process.env.CI ? 'pnpm run preview' : 'pnpm run dev',
port: Number(new URL(baseURL).port),
reuseExistingServer: !process.env.CI,
},