16 lines
753 B
TypeScript
16 lines
753 B
TypeScript
import { readFileSync } from "node:fs";
|
|
import { describe, expect, it } from "vitest";
|
|
|
|
describe("release validation contract", () => {
|
|
it("keeps mock and real browser smoke inside the deployment-authoritative full gate", () => {
|
|
const workflow = readFileSync(new URL("../../../.gitea/workflows/managed-validation.yml", import.meta.url), "utf8");
|
|
|
|
expect(workflow).toContain("postgres:16");
|
|
expect(workflow).toContain("TEST_DATABASE_URL");
|
|
expect(workflow).toMatch(/\[\[\s+"\$\{profile\}"\s+==\s+(?:"full"|full)/);
|
|
expect(workflow).toContain("playwright install --with-deps --force chromium chromium-headless-shell");
|
|
expect(workflow).toContain("pnpm test:e2e");
|
|
expect(workflow).toContain("pnpm test:e2e:real");
|
|
});
|
|
});
|