feat: enforce commercial Jyotish workflow contracts

This commit is contained in:
732642856
2026-07-19 09:00:14 +08:00
parent 3d6d498892
commit 8b608781c9
14 changed files with 470 additions and 16 deletions
@@ -0,0 +1,13 @@
import assert from "node:assert/strict";
import { readFileSync } from "node:fs";
import test from "node:test";
const page = readFileSync(new URL("../src/app/page.tsx", import.meta.url), "utf8");
test("loads birth-time rectification only when its onboarding stage is reached", () => {
assert.match(page, /import dynamic from "next\/dynamic"/);
assert.match(page, /const BirthTimeRectification = dynamic\(/);
assert.match(page, /import\("@\/components\/birth-time-rectification"\)/);
assert.match(page, /ssr: false/);
assert.match(page, /role="status"/);
});