Files
community-rule/tests/components/Icon.test.tsx
T
2026-04-18 14:12:49 -06:00

27 lines
548 B
TypeScript

import { describe } from "vitest";
import {
componentTestSuite,
type ComponentTestSuiteConfig,
} from "../utils/componentTestSuite";
import { Icon } from "../../app/components/asset";
type Props = React.ComponentProps<typeof Icon>;
const config: ComponentTestSuiteConfig<Props> = {
component: Icon,
name: "Icon",
props: {
name: "exclamation",
size: 24,
} as Props,
requiredProps: ["name"],
testCases: {
renders: true,
accessibility: true,
},
};
describe("Icon", () => {
componentTestSuite<Props>(config);
});