Some checks failed
Dev Deployment (Zero Downtime) / deploy-dev (push) Failing after 9m19s
Fixed missing types, import errors, and updated test suites to match the new editorial design. Verified Docker container build.
19 lines
484 B
TypeScript
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();
|
|
});
|
|
});
|