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