Configure l'environnement de développement complet avec Docker Compose, structure DDD 4 Bounded Contexts, et pipeline CI/CD GitHub Actions. Corrections compatibilité CI: - Symfony 8 nécessite monolog-bundle ^4.0 (la v3.x ne supporte que jusqu'à Symfony 7) - ESLint v9 nécessite flat config (eslint.config.js) - le format .eslintrc.cjs est obsolète
42 lines
753 B
TypeScript
42 lines
753 B
TypeScript
import type { PlaywrightTestConfig } from '@playwright/test';
|
|
|
|
const config: PlaywrightTestConfig = {
|
|
webServer: {
|
|
command: 'pnpm run build && pnpm run preview',
|
|
port: 4173,
|
|
reuseExistingServer: !process.env.CI
|
|
},
|
|
testDir: 'e2e',
|
|
testMatch: /(.+\.)?(test|spec)\.[jt]s/,
|
|
use: {
|
|
baseURL: 'http://localhost:4173',
|
|
trace: 'on-first-retry',
|
|
screenshot: 'only-on-failure',
|
|
video: 'retain-on-failure'
|
|
},
|
|
retries: process.env.CI ? 2 : 0,
|
|
reporter: process.env.CI ? 'github' : 'html',
|
|
projects: [
|
|
{
|
|
name: 'chromium',
|
|
use: {
|
|
browserName: 'chromium'
|
|
}
|
|
},
|
|
{
|
|
name: 'firefox',
|
|
use: {
|
|
browserName: 'firefox'
|
|
}
|
|
},
|
|
{
|
|
name: 'webkit',
|
|
use: {
|
|
browserName: 'webkit'
|
|
}
|
|
}
|
|
]
|
|
};
|
|
|
|
export default config;
|