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>
29 lines
1 KiB
JavaScript
29 lines
1 KiB
JavaScript
/**
|
|
* @file Vérifie le build de production servi par server.mjs, sans réutiliser une instance Vite de
|
|
* développement.
|
|
*/
|
|
|
|
import { defineConfig, devices } from "@playwright/test";
|
|
import { tmpdir } from "node:os";
|
|
import { join } from "node:path";
|
|
|
|
export default defineConfig({
|
|
testDir: "./e2e/production",
|
|
workers: 1,
|
|
outputDir: "test-results/production",
|
|
reporter: [["list"], ["html", { open: "never", outputFolder: "playwright-report/production" }]],
|
|
use: {
|
|
baseURL: "http://127.0.0.1:4173",
|
|
trace: "retain-on-failure",
|
|
screenshot: "only-on-failure"
|
|
},
|
|
webServer: {
|
|
// Le serveur Node livré, et non Vite Preview : il porte la CSP et les en-têtes de production.
|
|
command: "node server.mjs",
|
|
env: { HOST: "127.0.0.1", PORT: "4173", CARDS_ENABLED: "false", SHARES_ENABLED: "true", SHARES_DIR: join(tmpdir(), "sokko-e2e-production-shares") },
|
|
url: "http://127.0.0.1:4173",
|
|
reuseExistingServer: false,
|
|
timeout: 120000
|
|
},
|
|
projects: [{ name: "chromium-production", use: { ...devices["Desktop Chrome"] } }]
|
|
});
|