chore: Tweak test config

This commit is contained in:
Sidharth Vinod
2025-03-17 19:59:34 -07:00
parent 65faee55b7
commit 23c93e9e92
3 changed files with 8 additions and 6 deletions
+5 -3
View File
@@ -9,8 +9,10 @@ export default defineConfig({
reporter: process.env.CI ? [['github'], ['list']] : 'list',
use: {
baseURL: 'http://localhost:3000',
trace: 'on-first-retry',
viewport: { width: 1920, height: 768 }
browserName: 'chromium',
permissions: ['clipboard-read', 'clipboard-write'],
trace: 'retain-on-failure',
viewport: { width: 1920, height: 1080 }
},
projects: [
{
@@ -19,7 +21,7 @@ export default defineConfig({
}
],
webServer: {
command: 'pnpm run dev',
command: `pnpm ${process.env.CI ? 'preview' : 'dev'}`,
url: 'http://localhost:3000',
reuseExistingServer: !process.env.CI
}