src/infrastructure/react/TextButton.test.tsx
import { render } from "@testing-library/react";
import { expect, it } from "vitest";
import { TextButton } from "./TextButton.js";
it("renders", () => {
expect(
render(<TextButton>foo</TextButton>).container.firstChild,
).toMatchSnapshot();
});
it("renders as a secondary button", () => {
expect(
render(<TextButton secondary>foo</TextButton>).container.firstChild,
).toMatchSnapshot();
});