// frontend/tests/a11y.test.tsx import { render } from "@testing-library/react"; import { axe } from "vitest-axe"; import { describe, it, expect, vi } from "vitest"; import { Topbar } from "@/components/Topbar"; vi.mock("next/navigation", () => ({ usePathname: () => "/dashboard" })); describe("a11y", () => { it("Topbar에 axe 위반 없음", async () => { const { container } = render(); expect(await axe(container)).toHaveNoViolations(); }); });