import { readFileSync } from "node:fs"; const page = readFileSync(new URL("../src/features/dataflow/DataflowPage.tsx", import.meta.url), "utf8"); const canvas = readFileSync(new URL("../src/features/dataflow/DataflowCanvas.tsx", import.meta.url), "utf8"); const css = readFileSync(new URL("../src/styles/dataflow.css", import.meta.url), "utf8"); const moduleEntry = readFileSync(new URL("../src/module.ts", import.meta.url), "utf8"); const checks = [ [page.includes(" !present).map(([, label]) => label); if (missing.length) { throw new Error(`Dataflow UI structure is missing: ${missing.join(", ")}`); } console.log("Dataflow page structure checks passed.");