Skip to content

Frontend component tests (Vitest) for the grid and Explorer #9

Description

@kgdunn

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions