|
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> |
|---|
|
|
| docs/testing.md |
|---|
| webclient/package-lock.json |
|---|
|
Too large (Show diff)
|
| webclient/package.json |
|---|
| webclient/src/stores/chat.js |
|---|
| webclient/tests/unit/api/index.test.js 0 → 100644 |
|---|
| webclient/tests/unit/composables/useWebSocket.test.js 0 → 100644 |
|---|
| webclient/tests/unit/stores/chat.test.js 0 → 100644 |
|---|
| webclient/tests/unit/stores/profiles.test.js 0 → 100644 |
|---|
| webclient/tests/unit/stores/sessions.test.js 0 → 100644 |
|---|
| webclient/vitest.config.js 0 → 100644 |
|---|