www/__tests__/app/page.test.jsx

14 lines
322 B
React
Raw Normal View History

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();
});
});