summaryrefslogtreecommitdiffhomepage
path: root/vitest-setup.ts
diff options
context:
space:
mode:
authorAdam Malczewski <[email protected]>2026-06-07 00:39:31 +0900
committerAdam Malczewski <[email protected]>2026-06-07 00:39:31 +0900
commitd96e504d197140e83c379a02527cf8148925ea67 (patch)
tree8e94ca913c93e279fb0a2b9fb8ef2d78220dd57f /vitest-setup.ts
parent979fd1aac559805e05b36369e0fb756a8ec517dd (diff)
downloaddispatch-web-d96e504d197140e83c379a02527cf8148925ea67.tar.gz
dispatch-web-d96e504d197140e83c379a02527cf8148925ea67.zip
Slice 2 wave 3: wire chat end-to-end at the composition root
- app/store.svelte.ts: one WebSocket carries surfaces AND chat (onChat -> chatStore.handleDelta); build the conversation cache over the IndexedDB adapter; createChatStore wired to transport (socket.send), injected HTTP historySync, and the cache; load() on construct - app/resolve-http-url.ts: host-relative HTTP base (port 24203), mirrors resolve-ws-url; injected fetch - App.svelte: render ChatView + Composer alongside the surface picker - createAppStore gains optional injection points (httpUrl/fetchImpl/indexedDB/ conversationId) for tests - vitest-setup.ts: fake-indexeddb/auto for jsdom IndexedDB (orchestrator-owned config; agent change adopted) Verified green (x2, stable): svelte-check 0/0, vitest 218, biome clean, build ok. Slice 2 (conversation transcript: cache + delta streaming) feature-complete.
Diffstat (limited to 'vitest-setup.ts')
-rw-r--r--vitest-setup.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/vitest-setup.ts b/vitest-setup.ts
index f149f27..2c29eea 100644
--- a/vitest-setup.ts
+++ b/vitest-setup.ts
@@ -1 +1,2 @@
import "@testing-library/jest-dom/vitest";
+import "fake-indexeddb/auto";