Files
8bitMyGoUI/web/playwright.config.js

14 lines
454 B
JavaScript

import { defineConfig } from '@playwright/test'
// BASE_URL runs the tests against a deployed site.
const url = process.env.BASE_URL
export default defineConfig({
testDir: 'tests',
timeout: 60000,
use: { baseURL: url || 'http://localhost:4173', viewport: { width: 1280, height: 800 } },
webServer: url
? undefined
: { command: 'python3 -m http.server 4173 --directory dist', url: 'http://localhost:4173', reuseExistingServer: true }
})