Unit Tests for UI Components (badge → tabs)
🧪 Add Unit Tests for UI Components (badge → tabs)
📌 Description
This issue focuses on adding unit tests for reusable UI components located in: src/components/ui Using Vitest + React Testing Library. These components are shared across the application and require basic rendering and interaction tests.
📂 Components in Scope
- badge.tsx
- button.tsx
- dialog.tsx
- input.tsx
- label.tsx
- switch.tsx
- tabs.tsx
🧪 What to Test
Rendering
- Component renders without crash
- Default UI appears
User Interactions
- Button click
- Input typing
- Switch toggle
- Dialog open/close
- Tabs switching
✅ Acceptance Criteria
- Tests added for all UI components