www/__tests__/app/about/page.test.jsx

14 lines
422 B
React
Raw Permalink Normal View History

import "@testing-library/jest-dom";
import { render, screen } from "@testing-library/react";
import AboutPage from "@/app/about/page";
import { allAuthors } from "@/.content-collections/generated";
describe("AboutPage", () => {
test.each(allAuthors.map(a => a.displayName))("%s: in page", name => {
render(<AboutPage />);
const person = screen.getByText(name);
expect(person).toBeInTheDocument();
})
});