14 lines
322 B
JavaScript
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();
|
|
});
|
|
});
|