import assert from "node:assert/strict"; import { readFileSync } from "node:fs"; import test from "node:test"; const page = readFileSync(new URL("../src/app/(app)/page.tsx", import.meta.url), "utf8"); const shell = readFileSync(new URL("../src/components/home-onboarding-shell.tsx", import.meta.url), "utf8"); test("loads birth-time rectification only when its onboarding stage is reached", () => { // 原值: 引导屏 dynamic() 加载 BirthTimeRectification。 // 新值: 引导屏不再包含 BirthTimeRectification;首页仍挂载 ConversationalBirthTimeRectification。 // 原因: BUG-1431,建档里的校正卡是死代码,校正只从对话进入。 assert.match(page, /