Add Vitest unit tests and Playwright e2e suite for frontend

Replaces the ad-hoc test-e2e.mjs scripts with a proper test stack:
Vitest covers $lib (api, auth, signalr) with mocked fetch/SignalR/navigation,
and @playwright/test covers auth, stores, lists, recipes, and SignalR realtime
sync between two browser contexts. Tests use uniqueName() for every entity
since the backend has no per-test reset.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Josh Rogers
2026-05-06 22:17:55 -05:00
parent 76e8de9484
commit cde619e730
19 changed files with 2508 additions and 299 deletions
+7
View File
@@ -10,6 +10,13 @@ node_modules/
build/
.svelte-kit/
## Playwright
playwright-report/
test-results/
## Claude Code (local agent state)
.claude/
## Environment
.env