Commit c296bd2
Feat/unit tests (#16)
* feat: Unit test setup
* test: Add unit tests for TableRow, Pagination, and TableHeader components
- Introduced unit tests for TableRow component, covering rendering, expansion, and custom rendering.
- Added tests for Pagination component, validating navigation and page size changes.
- Implemented tests for TableHeader component, ensuring correct rendering and filtering functionality.
- Included necessary imports and mock data for testing.
* feat: Add unit tests for SortType and defaultTheme
- Introduced unit tests for the SortType enum, verifying its values and count.
- Added tests for the defaultTheme structure, ensuring it contains the correct properties and valid configuration values for colors, table, pagination, and expand icon.
- Updated vitest configuration to include test files with .ts and .tsx extensions.
- Added @vitest/coverage-v8 dependency for improved test coverage reporting.
* test: Add unit tests for MultiLevelTable component
- Introduced comprehensive unit tests for the MultiLevelTable component, covering rendering, row expansion, sorting, pagination, custom theming, and filtering functionalities.
- Validated the correct application of custom styles and rendering for status cells and pagination controls.
- Ensured that the component behaves as expected with mock data and various configurations.
---------
Co-authored-by: anitta-keyvalue <anitta@keyvalue.systems>1 parent f20903c commit c296bd2
File tree
15 files changed
+2793
-27
lines changed- tests
- components
- constants
15 files changed
+2793
-27
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
0 commit comments