Commit 372f81a
committed
test(react): add tests to reach 99% coverage and enable 80% thresholds
- Fill validation.ts gaps: minTime, maxTime, minItems, maxItems,
required empty array
- Create use-data-form.test.ts: 47 tests covering state, scoping,
groups, sections, setValue, validation, dirty/valid, actions,
getFieldProps, fireEvent, bootstrap, translate, permitted
- Create use-data-table.test.ts: 41 tests covering columns,
toggleColumn, fetch/reload, setSort, setFilter, setLimit, selection,
formatValue, actions, getRowActions, permitted
- Add @testing-library/react and react-dom as dev dependencies
- Enable 80% coverage thresholds in vitest.config.ts
React coverage: 26% → 99.73% lines.
https://claude.ai/code/session_01DcGDGNKmyUHf1DRxxeLGPZ1 parent e242304 commit 372f81a
6 files changed
Lines changed: 1804 additions & 26 deletions
File tree
- packages/react
- src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
25 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
26 | 29 | | |
27 | 30 | | |
28 | 31 | | |
| |||
0 commit comments