Skip to content

Commit 372f81a

Browse files
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_01DcGDGNKmyUHf1DRxxeLGPZ
1 parent e242304 commit 372f81a

6 files changed

Lines changed: 1804 additions & 26 deletions

File tree

packages/react/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,13 @@
1919
"react": ">=18"
2020
},
2121
"devDependencies": {
22+
"@testing-library/react": "^16.3.2",
2223
"@types/react": "^19.0.0",
2324
"@vitest/coverage-v8": "^3.2.4",
2425
"@ybyra/core": "workspace:*",
25-
"react": "^19.0.0",
26+
"jsdom": "^28.0.0",
27+
"react": "19.1.0",
28+
"react-dom": "^19.1.0",
2629
"tsup": "^8.0.0",
2730
"typescript": "^5.7.0",
2831
"vitest": "^3.0.0"

0 commit comments

Comments
 (0)