-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathplaywright.config.ts
More file actions
25 lines (24 loc) · 853 Bytes
/
Copy pathplaywright.config.ts
File metadata and controls
25 lines (24 loc) · 853 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import { defineConfig } from '@playwright/test';
export default defineConfig({
testDir: './tests',
testMatch: '*.spec.ts',
timeout: 30000,
// After the whole run, delete the scratch databases the tests created in
// data/ (keeps system.sqlite3). See #36.
globalTeardown: './tests/global-teardown.ts',
use: {
baseURL: 'http://localhost:5173',
headless: true,
screenshot: 'only-on-failure',
video: 'retain-on-failure',
},
reporter: [['list'], ['html', { open: 'never', outputFolder: 'playwright-report' }]],
// Auto-start the dev server (Vite :5173 + WS :3000) for the e2e run. In CI a
// fresh server is always started; locally an already-running server is reused.
webServer: {
command: 'npm run dev',
url: 'http://localhost:5173',
reuseExistingServer: !process.env.CI,
timeout: 120_000,
},
});