// @vitest-environment node import { renderToStaticMarkup } from "react-dom/server"; import { describe, expect, it } from "vitest"; import { PaperclipLoading } from "./AnimatedPaperclipIcon"; describe("PaperclipLoading", () => { it("renders an accessible full-page loading state", () => { const html = renderToStaticMarkup(); expect(html).toContain('role="status"'); expect(html).toContain("min-h-dvh"); expect(html).toContain('aria-hidden="true"'); expect(html).toContain('Loading…'); }); it("allows containing layouts to override the full-page height", () => { const html = renderToStaticMarkup(); expect(html).toContain("min-h-0"); expect(html).not.toContain("min-h-dvh"); }); });