Add webclient unit tests (Vitest) — 47 tests
- Vitest + @vue/test-utils + happy-dom setup
- api/index.test.js: 8 tests for fetch wrapper, verbs, errors, FormData
- stores/chat.test.js: 23 tests for buildMessageList, WS handlers, load/clear
- stores/sessions.test.js: 6 tests for fetch, create, delete, pin, preview
- stores/profiles.test.js: 3 tests for fetch, auto-select, lookup
- composables/useWebSocket.test.js: 7 tests with MockWebSocket
- Export buildMessageList from chat store so tests can verify message parsing
- Update docs/testing.md with webclient stack, layout, and commands

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 6596822 commit b6472b75cc4b069f0ad005dd08a885c43285dfba
@Eugene Sukhodolskiy Eugene Sukhodolskiy authored on 29 Apr
Showing 10 changed files
View
docs/testing.md
View
webclient/package-lock.json
Too large (Show diff)
View
webclient/package.json
View
webclient/src/stores/chat.js
View
webclient/tests/unit/api/index.test.js 0 → 100644
View
webclient/tests/unit/composables/useWebSocket.test.js 0 → 100644
View
webclient/tests/unit/stores/chat.test.js 0 → 100644
View
webclient/tests/unit/stores/profiles.test.js 0 → 100644
View
webclient/tests/unit/stores/sessions.test.js 0 → 100644
View
webclient/vitest.config.js 0 → 100644