www/__tests__/app/about/page.test.jsx
Xe Iaso 993254f389
enable testing
Signed-off-by: Xe Iaso <me@xeiaso.net>
2024-09-23 09:58:08 -07:00

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