Test Failed
Push — master ( 207748...5f3e3e )
by Jesús
03:19
created

playwright.config.ts   A

Complexity

Total Complexity 2
Complexity/F 0

Size

Lines of Code 28
Function Count 0

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 22
mnd 2
bc 2
fnc 0
dl 0
loc 28
rs 10
bpm 0
cpm 0
noi 0
c 0
b 0
f 0
1
import { defineConfig, devices } from '@playwright/test';
2
3
export default defineConfig({
4
  testDir: './test/e2e',
5
  fullyParallel: true,
6
  forbidOnly: !!process.env.CI,
7
  retries: process.env.CI ? 2 : 0,
8
  workers: process.env.CI ? 1 : undefined,
9
  reporter: 'html',
10
  use: {
11
    baseURL: 'http://localhost:3000',
12
    trace: 'on-first-retry',
13
    screenshot: 'only-on-failure',
14
  },
15
  projects: [
16
    {
17
      name: 'chromium',
18
      use: { ...devices['Desktop Chrome'] },
19
    },
20
  ],
21
  webServer: {
22
    command: 'npm run dev',
23
    url: 'http://localhost:3000',
24
    reuseExistingServer: !process.env.CI,
25
    timeout: 120 * 1000,
26
  },
27
});
28