import { readFileSync } from "node:fs"; import { describe, expect, it } from "vitest"; describe("ModelTrajectoryPane scroll container", () => { it("uses native vertical scrolling without the Radix ScrollArea table wrapper", () => { const source = readFileSync("packages/ui/src/ModelTrajectoryPane.tsx", "utf8"); const timelineSource = readFileSync("packages/ui/src/ModelTrajectoryTimeline.tsx", "utf8"); // 侧栏改为独立外框后,旧边框字符串断言会误报;这里只验证轨迹自身的原生滚动与虚拟列表。 expect(source).not.toContain("import { ScrollArea }"); expect(source).not.toContain("