Add the server-backed card game: Discord login, recharging pack openings, album, trades, gifts, stardust shop, campaign codes and its administration, stored in SQLite and disabled in production until configured. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
32 lines
1,014 B
JavaScript
32 lines
1,014 B
JavaScript
// Rôle : configure les diagnostics navigateur Playwright sans les intégrer au check de prod.
|
|
import { defineConfig, devices } from "@playwright/test";
|
|
|
|
const port = Number(process.env.E2E_PORT || 5173);
|
|
const baseURL = `http://localhost:${port}`;
|
|
const isolatedCardsEnvironment = process.env.E2E_PORT ? "CARDS_DB_PATH=:memory: CARDS_DEV_AUTH=true " : "";
|
|
|
|
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"] }
|
|
}
|
|
]
|
|
});
|