Skip to content

Frontend testing guide #573

Description

@codebestia

Write apps/web/docs/testing.md: the web app's Vitest setup, Testing Library conventions, and the browser APIs that must be faked — IndexedDB via fake-indexeddb, WebCrypto, service worker registration, and the socket client.

Acceptance criteria:

  • Documents the runner config, setup files and how to run a single test
  • Documents the fake-indexeddb pattern and the requirement to reset databases between tests so key material does not leak across cases
  • Documents how WebCrypto-dependent code is tested, including round-trip encrypt/decrypt as the meaningful assertion
  • Documents the socket-client mocking pattern for component tests

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions