Hartmut
|
c0ba062460
|
test(web): add 57 UI component and hook tests with jsdom cleanup
Fix jsdom environment: add esbuild automatic JSX transform and
afterEach cleanup to prevent DOM leakage between tests.
Components: Badge (8), Button (13), FilterBar (5), EmptyState (8),
ConfirmDialog (8), useSelection hook (15).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
2026-04-10 17:06:42 +02:00 |
|
Hartmut
|
63db4a09e6
|
refactor(web): set up component test infra + decompose ProjectWizard
Phase 4a: Add @testing-library/react, user-event, jest-dom, jsdom.
Switch vitest environment to jsdom, add setup file, create test-utils
with QueryClient wrapper.
Phase 4b: Extract ProjectWizard form logic into project-wizard/ subdir:
- types.ts: WizardState, Assignment, constants, factory functions
- useProjectWizardForm.ts: form state hook + canGoNext pure function
Phase 4c: 32 tests for canGoNext validation (all 5 steps), makeDefaultState,
and makeReq factory function.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
2026-04-10 17:00:45 +02:00 |
|