Implement about page

This commit is contained in:
adilallo
2026-05-13 23:08:36 -06:00
parent d2dfa099a2
commit b6b9b63608
69 changed files with 1834 additions and 28 deletions
+28
View File
@@ -0,0 +1,28 @@
import { render, screen } from "@testing-library/react";
import { describe, it, expect } from "vitest";
import Stats from "../../../app/components/sections/Stats";
describe("Stats", () => {
it("renders heading and stat cards", () => {
render(
<Stats
titlePrefix="From"
titleEmphasis="projects"
titleSuffix="to communities"
items={[
{
value: "27%",
label: "year over year growth",
asOf: "as of June 30, 2024",
shapeVariant: "purple",
},
]}
/>,
);
expect(
screen.getByRole("heading", { name: /From projects to communities/i }),
).toBeInTheDocument();
expect(screen.getByText("27%")).toBeInTheDocument();
});
});