this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at main 50 lines 1.5 kB view raw
1// @ts-check 2import { defineConfig, devices } from '@playwright/test'; 3 4/** 5 * Read environment variables from file. 6 * https://github.com/motdotla/dotenv 7 */ 8// import dotenv from 'dotenv'; 9// import path from 'path'; 10// dotenv.config({ path: path.resolve(__dirname, '.env') }); 11 12/** 13 * @see https://playwright.dev/docs/test-configuration 14 */ 15export default defineConfig({ 16 testDir: './tests', 17 /* Run tests in files in parallel */ 18 fullyParallel: true, 19 /* Fail the build on CI if you accidentally left test.only in the source code. */ 20 forbidOnly: !!process.env.CI, 21 /* Retry on CI only */ 22 retries: process.env.CI ? 2 : 0, 23 /* Opt out of parallel tests on CI. */ 24 workers: process.env.CI ? 1 : undefined, 25 /* Reporter to use. See https://playwright.dev/docs/test-reporters */ 26 reporter: process.env.CI ? 'github' : 'list', 27 /* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */ 28 use: { 29 /* Base URL to use in actions like `await page.goto('/')`. */ 30 baseURL: 'http://localhost:5173', 31 32 /* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */ 33 trace: 'on-first-retry', 34 }, 35 36 /* Configure projects for major browsers */ 37 projects: [ 38 { 39 name: 'Mobile Safari', 40 use: { ...devices['iPhone 13 Mini'] }, 41 }, 42 ], 43 44 /* Run your local dev server before starting the tests */ 45 webServer: { 46 command: 'npm run dev', 47 url: 'http://localhost:5173', 48 reuseExistingServer: !process.env.CI, 49 }, 50});