Skip to content

Add component tests for components/ui/button.tsx #649

Description

@Austinaminu2

Description

`components/ui/button.tsx`, one of the most widely-used components in the app, has no test coverage for its variants/sizes or the `asChild` render-prop path.

Task

Add a test file covering: each variant and size renders with the expected classes, and the `asChild` prop correctly renders the passed child element instead of a native ``.

Good for contributors because

Foundational, widely-reused component with a clean, enumerable prop matrix to test — good first exposure to the design system.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is neededtestingTests and QA

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions