mirror of
https://github.com/SamyRai/tercul-frontend.git
synced 2025-12-26 21:51:34 +00:00
- 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.
34 lines
742 B
TypeScript
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,
|
|
},
|
|
});
|