# frontend/src/components/ui/__tests__
dir: frontend/src/components/ui/__tests__

index: frontend/src/components/ui/__tests__/.pi-map.index.md

## role
Test suite for UI component primitives, validating rendering, variants, and interactive behaviors of foundational elements like Badge and DataTable.
## files
- badge.test.tsx | Tests that the Badge component renders a success variant with the correct data attribute and CSS class using a Vitest testing harness. | dep: vitest, @testing-library/react, ../badge
- data-table.test.tsx | Tests a DataTable React component wrapper around TanStack Table, covering rendering, row selection, column visibility, row click events, empty states, and pagination. | dep: vitest, react, @testing-library/react, @testing-library/user-event, @tanstack/react-table, ../data-table
## arch
Vitest and React Testing Lab testing patterns with declarative test cases covering visual variants, TanStack Table integration, user interactions, and edge-case rendering.
## tags
react, data, vitest, @testing, library, table, tests, badge
## symbols
-
## workflows
- update __tests__ tests
  read: badge.test.tsx, data-table.test.tsx
## dirty
-
