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() 写在 page.tsx。 // 新值: dynamic() 在引导屏组件,page.tsx 仍挂载该组件。 // 原因: 首页拆分搬走了引导屏,懒加载本身没变。 assert.match(page, /