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