// @vitest-environment node import fs from "node:fs"; import path from "node:path"; import { describe, expect, it } from "vitest"; function routeSource(name: string): string { return fs.readFileSync(path.resolve(process.cwd(), `apps/web/app/routes/${name}`), "utf8"); } describe("settings UI contracts", () => { it("enables the sticky inner sidebar only on the settings shell", () => { expect(routeSource("app.$tenant/settings.tsx")).toContain(""); }); it("keeps breathing room below the workspace deletion area", () => { expect(routeSource("app.$tenant/settings/workspace/index.tsx")).toContain(''); }); });