import { readFileSync } from "node:fs"; import { join } from "node:path"; import { describe, expect, it } from "vitest"; // refine-visitor-pages-and-shell: the pinned first column hides the left scroll cue, so it carries // a divider on its right edge that shows where scrolled columns slide under it. describe("pinned first column", () => { const src = readFileSync(join(__dirname, "data-table.tsx"), "utf8"); it("draws a token-coloured divider on the right edge of pinned head and body cells", () => { for (const name of ["PINNED_HEAD", "PINNED_CELL"]) { const value = src.match(new RegExp(`const ${name}\\s*=\\s*\\n?\\s*'([^']*)'`))?.[1] ?? ""; expect(value, name).toContain("shadow-[inset_-1px_0_0_var(--border)]"); } }); });