tercul-frontend/playwright.config.ts
Damir Mukimov dfe69353f3
feat: Add comprehensive testing infrastructure and production readiness improvements
- Add Jest testing framework with React Testing Library
- Configure Playwright for E2E testing
- Add TypeScript strict mode configuration
- Implement unit tests for common components (LanguageTag, WorkCard)
- Add Babel configuration for testing compatibility
- Update Vite config for better production builds
- Add comprehensive type definitions for testing libraries
- Configure test scripts and coverage reporting
- Enhance package.json with testing and quality scripts

Implemented by Jules AI agent for production readiness and code quality enhancement.
2025-11-30 06:40:29 +01:00

34 lines
742 B
TypeScript

import { defineConfig, devices } from '@playwright/test';
export default defineConfig({
testDir: './client/src/e2e',
fullyParallel: true,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 0,
workers: process.env.CI ? 1 : undefined,
reporter: 'html',
use: {
baseURL: 'http://localhost:3000',
trace: 'on-first-retry',
},
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'] },
},
{
name: 'firefox',
use: { ...devices['Desktop Firefox'] },
},
{
name: 'webkit',
use: { ...devices['Desktop Safari'] },
},
],
webServer: {
command: 'yarn dev',
url: 'http://localhost:3000',
reuseExistingServer: !process.env.CI,
},
});