You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
648 B
TypeScript

import path from 'node:path'
import { fileURLToPath } from 'node:url'
import { defineConfig } from '@playwright/test'
const configDir = path.dirname(fileURLToPath(import.meta.url))
const frontendRoot = path.resolve(configDir, '../..')
export default defineConfig({
testDir: './e2e',
testIgnore: ['**/full-stack/**'],
timeout: 30_000,
use: {
baseURL: process.env.PW_BASE_URL ?? 'http://127.0.0.1:4173',
headless: true,
},
webServer: {
command: 'yarn workspace @knowfoolery/web dev --host 127.0.0.1 --port 4173',
cwd: frontendRoot,
port: 4173,
reuseExistingServer: !process.env.CI,
timeout: 60_000,
},
})