test: prove TechLog UI migration parity

This commit is contained in:
DongHyeonka
2026-08-16 02:48:26 +09:00
parent c5c8b9423c
commit 6c2780b7a7
176 changed files with 2393 additions and 616 deletions
+15
View File
@@ -0,0 +1,15 @@
import { describe, expect, it } from "vitest";
import { containsRawPaletteValue } from "../../scripts/lib/design-system-source.ts";
describe("design-system source palette detection", () => {
it("rejects palette literals without treating URL fragments as colors", () => {
expect(containsRawPaletteValue('style={{ color: "#ff0000" }}')).toBe(true);
expect(containsRawPaletteValue('const css = "color: rgb(255 0 0)"')).toBe(true);
expect(
containsRawPaletteValue(
'path: "/projects/backend-skeleton/decisions#feed-pagination-boundary"',
),
).toBe(false);
});
});