Goal
Add frontend unit/component tests so the reusable grid and the explorer behaviour are covered independently of end-to-end runs.
Scope
- Set up Vitest +
@testing-library/svelte in frontend/.
lib/grid/DataGrid.svelte: virtualization window math, frozen columns, header/cell snippets, click events — tested in isolation (reinforces the reuse boundary).
Explorer.svelte helpers: role/quality cellClass/headerClass, draft-spec toggles, raw/scaled reload.
lib/spec.ts serialization (toApiSpec) and lib/api.ts fetchers (mocked).
Complements the Playwright end-to-end tests (#4). Roadmap item — keep open.
Goal
Add frontend unit/component tests so the reusable grid and the explorer behaviour are covered independently of end-to-end runs.
Scope
@testing-library/svelteinfrontend/.lib/grid/DataGrid.svelte: virtualization window math, frozen columns, header/cell snippets, click events — tested in isolation (reinforces the reuse boundary).Explorer.sveltehelpers: role/qualitycellClass/headerClass, draft-spec toggles, raw/scaled reload.lib/spec.tsserialization (toApiSpec) andlib/api.tsfetchers (mocked).Complements the Playwright end-to-end tests (#4). Roadmap item — keep open.