Files
portfolio/app/__tests__/components/ThemeToggle.test.tsx
denshooter 6f62b37c3a
Some checks failed
Dev Deployment (Zero Downtime) / deploy-dev (push) Failing after 9m19s
fix: build and test stability for design overhaul
Fixed missing types, import errors, and updated test suites to match the new editorial design. Verified Docker container build.
2026-02-16 02:54:02 +01:00

19 lines
484 B
TypeScript

import { render, screen } from "@testing-library/react";
import { ThemeToggle } from "@/app/components/ThemeToggle";
// Mock next-themes
jest.mock("next-themes", () => ({
useTheme: () => ({
theme: "light",
setTheme: jest.fn(),
}),
}));
describe("ThemeToggle Component", () => {
it("renders the theme toggle button", () => {
render(<ThemeToggle />);
// Initial render should have the button
expect(screen.getByRole("button")).toBeInTheDocument();
});
});