Files
plantillas-proyectos/frontend/playwright.config.ts
2026-04-23 14:36:11 -06:00

27 lines
677 B
TypeScript

import { defineConfig } from '@playwright/test';
import { fileURLToPath } from 'url';
import path from 'path';
const __dirname = path.dirname(fileURLToPath(import.meta.url));
export default defineConfig({
timeout: 60000,
use: {
baseURL: 'http://localhost:5173',
headless: false,
storageState: path.join(__dirname, 'e2e/.auth/user.json')
},
workers: 1,
testDir: 'e2e',
projects: [
{
name: 'setup',
testMatch: '**/auth.setup.ts'
},
{
name: 'tests',
dependencies: ['setup'],
testIgnore: ['**/auth.setup.ts', '**/demo.test.ts']
}
]
});