Add the Sokko TCG collectible card mini-game
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>
This commit is contained in:
parent
243465720f
commit
5ce35cd7ba
193 changed files with 12159 additions and 28 deletions
|
|
@ -1,22 +1,26 @@
|
|||
// 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/**",
|
||||
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: "http://localhost:5173",
|
||||
baseURL,
|
||||
trace: "retain-on-failure",
|
||||
screenshot: "only-on-failure"
|
||||
},
|
||||
webServer: {
|
||||
command: "npm run dev",
|
||||
url: "http://localhost:5173",
|
||||
reuseExistingServer: true,
|
||||
command: `${isolatedCardsEnvironment}npm run dev -- --port ${port}`,
|
||||
url: baseURL,
|
||||
reuseExistingServer: !process.env.E2E_PORT,
|
||||
timeout: 120000
|
||||
},
|
||||
projects: [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue