Files
DOSSIER/e2e/globalSetup.ts
T
Claude 7e30b476cc [49][57] Playwright-UI-Suite e2e/ (14 Tests), npm run e2e, CI-Job e2e
Bedient die gebaute App wie ein Mensch: Start, neues Projekt, Musterhaus,
Wand per Klicks/Befehlszeile, Undo/Redo, Eigenschaft ändern, Geschoss,
3D, Speichern, Export IFC/DXF, DXF-Import. Konsolenfehler scheitern
(Erlaubt-Liste für headless-wgpu). Projekt öffnen im Browser ist kaputt
(readAsArrayBuffer + String) und als test.fail markiert.

Claude-Session: https://claude.ai/code/session_01NTYBZBvLYCtugMJoKXaB67
2026-10-28 20:33:54 +00:00

16 lines
641 B
TypeScript

// Erzeugt die .obp-Fixture (Beispielprojekt) mit der CLI — `*.obp` ist gitignoriert, also nie im Repo.
import { execFileSync } from "node:child_process";
import { existsSync, mkdirSync } from "node:fs";
import { dirname } from "node:path";
import { BEISPIEL_OBP } from "./paths";
export default function globalSetup(): void {
if (!existsSync("dist-cli/dossier-cli.mjs")) {
execFileSync("npm", ["run", "build:cli"], { stdio: "inherit" });
}
mkdirSync(dirname(BEISPIEL_OBP), { recursive: true });
execFileSync("node", ["dist-cli/dossier-cli.mjs", ":beispiel", "migrate", "--out", BEISPIEL_OBP], {
stdio: "inherit",
});
}