test(ui): remove HeroUI migration-guard tests

This commit is contained in:
alejandrobailo
2026-06-17 20:40:29 +02:00
parent 5b758546db
commit 24f4e24a02
4 changed files with 0 additions and 30 deletions
@@ -18,11 +18,6 @@ describe("ComplianceCard", () => {
expect(source).not.toContain("sm:flex-row");
});
it("uses the shadcn progress component instead of Hero UI", () => {
expect(source).toContain('from "@/components/shadcn/progress"');
expect(source).not.toContain("@heroui/progress");
});
it("places compact actions in the icon column on larger screens", () => {
expect(source).toContain('orientation="column"');
expect(source).toContain('buttonWidth="icon"');
@@ -40,7 +40,6 @@ describe("ComplianceDownloadContainer", () => {
it("uses the shared action dropdown for the card actions mode", () => {
expect(source).toContain("ActionDropdown");
expect(source).not.toContain("@heroui/button");
});
it("should expose an accessible actions menu trigger", () => {
@@ -1,17 +0,0 @@
import { readFileSync } from "node:fs";
import path from "node:path";
import { fileURLToPath } from "node:url";
import { describe, expect, it } from "vitest";
describe("ComplianceSkeletonGrid", () => {
const currentDir = path.dirname(fileURLToPath(import.meta.url));
const filePath = path.join(currentDir, "compliance-grid-skeleton.tsx");
const source = readFileSync(filePath, "utf8");
it("uses shadcn skeletons instead of Hero UI", () => {
expect(source).toContain('from "@/components/shadcn/skeleton/skeleton"');
expect(source).not.toContain("@heroui/card");
expect(source).not.toContain("@heroui/skeleton");
});
});
@@ -9,13 +9,6 @@ describe("ThreatScoreBadge", () => {
const filePath = path.join(currentDir, "threatscore-badge.tsx");
const source = readFileSync(filePath, "utf8");
it("uses shadcn card and progress components instead of Hero UI", () => {
expect(source).toContain('from "@/components/shadcn/card/card"');
expect(source).toContain('from "@/components/shadcn/progress"');
expect(source).not.toContain("@heroui/card");
expect(source).not.toContain("@heroui/progress");
});
it("uses ActionDropdown for downloads instead of ComplianceDownloadContainer", () => {
expect(source).toContain("ActionDropdown");
expect(source).toContain("ActionDropdownItem");