Loading files
54d761463This file is pinned to the selected release. Download the original to open it in your design tool.
54d761463This file is pinned to the selected release. Download the original to open it in your design tool.
# Chat tests
Chat 機能の検証用テストは、対象 module または MOD の近くに配置する。
## 実行方法
```sh
source /home/sskw/.local/share/xs-dev-export.sh
npm run test:moddable -- ./host/modules/conversation/__tests__/chat-service/manifest.test.json
npm run test:moddable -- ./host/modules/conversation/__tests__/mcp-chat-tools/manifest.test.json
npm run test:moddable -- ./host/modules/ui/components/status-bar/__tests__/chat-status-bar/manifest.test.json
npm run test:moddable -- ./host/modules/ui/components/bubble/__tests__/speech-balloon/manifest.test.json
npm run test:moddable -- ./mods/examples/chat_audioio/__tests__/chat-audioio-config/manifest.test.json
```
## テスト一覧
- `chat-service`: ChatService と ChatAudioIO の橋渡しの検証
- `mcp-chat-tools`: MCP tools から Chat tools への変換の検証
- `chat-status-bar`: AppBar 状態表示の切替と入力ゲイン反映
- `chat-balloon`: SpeechBalloon の生成/更新が成立することの確認
- `chat-audioio-config`: `config.chat.type` のガードが不正値を弾くことを確認
## 備考
ChatService のテストは `ChatAudioIO` を `host/modules/testing/fakes/ChatAudioIO.js` に差し替えて実行する。
このテスト群は実機とネットワークに依存しない。
Files from this revision, including CAD and LFS contents. Git history is not included.
Or in GitHub Desktop, choose File → Clone repository → URL and paste this address.
Public repositories can be cloned without signing in. For pushing, use your ThingAtlas username and a Git access token as the password.
git lfs install git clone https://thingatlas.com/git/-unclaimed/stack-chan-374381865.git
Includes Git history, branches, and Git LFS files. Clones the repository’s default branch, regardless of the version shown here.