test: add vitest infrastructure and initial test suite (97 tests)
Set up vitest as the monorepo test framework with workspace support
and turbo task integration. Added tests across all three packages:
- appview: route handler tests (health, forum, categories, topics,
posts, routing), config loading, and database schema assertions
- lexicon: contract tests validating YAML structure, lexicon IDs,
record key conventions, knownValues usage, and strongRef fields
- web: fetchApi client tests (URL construction, error handling)
and config loading tests
Tests also document two config gaps where ?? doesn't catch empty
strings, causing NaN ports and empty URLs.
https://claude.ai/code/session_01MffppURah8kTTYS3SUZu5e
authored by
malpercio.dev
e5647dd4
94dcc879