www/__tests__/app/page.test.jsx
Xe Iaso 993254f389
enable testing
Signed-off-by: Xe Iaso <me@xeiaso.net>
2024-09-23 09:58:08 -07:00

14 lines
322 B
JavaScript

import "@testing-library/jest-dom";
import { render, screen } from "@testing-library/react";
import Page from "@/app/page";
describe("Page", () => {
it("renders a heading", () => {
render(<Page />);
const heading = screen.getByRole("heading", { level: 1 });
expect(heading).toBeInTheDocument();
});
});