Add ARCHITECTURE.md (layers, flows, folder map, glossary), CONTRIBUTING.md (setup and step-by-step recipes) and a README in each main folder, with an index of docs/. Convert the 511 JavaScript headers from "// Rôle :" lines to JSDoc @file blocks, define a three-level header template in website/AGENTS.md and check the header in tests/file-headers.test.mjs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
38 lines
1.2 KiB
JavaScript
38 lines
1.2 KiB
JavaScript
/**
|
|
* @file Configure les diagnostics navigateur Playwright sans les intégrer au check de prod.
|
|
*/
|
|
|
|
import { defineConfig, devices } from "@playwright/test";
|
|
import { tmpdir } from "node:os";
|
|
import { join } from "node:path";
|
|
|
|
const port = Number(process.env.E2E_PORT || 5173);
|
|
const baseURL = `http://localhost:${port}`;
|
|
// Un dossier d'envois propre à chaque port : une exécution isolée ne relit pas les envois du serveur de développement.
|
|
const isolatedCardsEnvironment = process.env.E2E_PORT ? `CARDS_DB_PATH=:memory: CARDS_DEV_AUTH=true SHARES_DIR=${join(tmpdir(), `sokko-e2e-shares-${port}`)} ` : "";
|
|
|
|
export default defineConfig({
|
|
testDir: "./e2e",
|
|
testIgnore: ["**/production/**", "**/nebula-cards.spec.js"],
|
|
fullyParallel: true,
|
|
// Le serveur Vite partagé compile les outils lazy à la première visite.
|
|
workers: 2,
|
|
reporter: [["list"], ["html", { open: "never" }]],
|
|
use: {
|
|
baseURL,
|
|
trace: "retain-on-failure",
|
|
screenshot: "only-on-failure"
|
|
},
|
|
webServer: {
|
|
command: `${isolatedCardsEnvironment}npm run dev -- --port ${port}`,
|
|
url: baseURL,
|
|
reuseExistingServer: !process.env.E2E_PORT,
|
|
timeout: 120000
|
|
},
|
|
projects: [
|
|
{
|
|
name: "chromium",
|
|
use: { ...devices["Desktop Chrome"] }
|
|
}
|
|
]
|
|
});
|