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