[PR #137] [MERGED] feat: add unit tests for chat-ui #151

Closed
opened 2026-02-16 03:15:23 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/run-llama/chat-ui/pull/137
Author: @thucpn
Created: 6/18/2025
Status: Merged
Merged: 6/19/2025
Merged by: @marcusschiesser

Base: mainHead: tp/add-use-workflow-tests


📝 Commits (10+)

  • 6408e3b feat: add unit tests for chat-ui
  • 5acb38d update ci to run test in chat-ui packages
  • 05e9e6e remove dead code
  • 641e97c fix format
  • 4f922d6 test sending event and stop event
  • ad691fb refactor: able to set default service via workflow params
  • e477859 update llama-deploy example to switch between workflows
  • f4cab27 update document
  • 832d909 Create slimy-mails-smash.md
  • 2a7f40d Update .changeset/slimy-mails-smash.md

📊 Changes

16 files changed (+2032 additions, -94 deletions)

View changed files

.changeset/slimy-mails-smash.md (+6 -0)
📝 .github/workflows/ci.yml (+4 -0)
📝 docs/chat-ui/hooks.mdx (+13 -13)
📝 examples/llama-deploy/llama_deploy.yml (+7 -1)
📝 examples/llama-deploy/src/adhoc_workflow.py (+2 -2)
examples/llama-deploy/src/echo_workflow.py (+31 -0)
📝 examples/llama-deploy/ui/app/page.tsx (+53 -27)
📝 packages/chat-ui/package.json (+13 -2)
📝 packages/chat-ui/src/hook/use-workflow/helper.ts (+5 -1)
📝 packages/chat-ui/src/hook/use-workflow/hook.ts (+13 -8)
📝 packages/chat-ui/src/hook/use-workflow/types.ts (+7 -7)
packages/chat-ui/src/test/__tests__/use-workflow.test.tsx (+243 -0)
packages/chat-ui/src/test/mocks/llama-deploy-server.ts (+151 -0)
packages/chat-ui/src/test/setup.ts (+14 -0)
packages/chat-ui/vitest.config.ts (+16 -0)
📝 pnpm-lock.yaml (+1454 -33)

📄 Description

No description provided


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/run-llama/chat-ui/pull/137 **Author:** [@thucpn](https://github.com/thucpn) **Created:** 6/18/2025 **Status:** ✅ Merged **Merged:** 6/19/2025 **Merged by:** [@marcusschiesser](https://github.com/marcusschiesser) **Base:** `main` ← **Head:** `tp/add-use-workflow-tests` --- ### 📝 Commits (10+) - [`6408e3b`](https://github.com/run-llama/chat-ui/commit/6408e3b92706ee0bea7b17570170dedfcebb4d73) feat: add unit tests for chat-ui - [`5acb38d`](https://github.com/run-llama/chat-ui/commit/5acb38dc4514fba84bf9dc43fed48d90507849ef) update ci to run test in chat-ui packages - [`05e9e6e`](https://github.com/run-llama/chat-ui/commit/05e9e6ef6e6c7098d5820c303cb44c1677edb4fa) remove dead code - [`641e97c`](https://github.com/run-llama/chat-ui/commit/641e97c44e697926f435a690015738ea14afeebc) fix format - [`4f922d6`](https://github.com/run-llama/chat-ui/commit/4f922d61841a4c859742e4bd832982a8aaa0b94e) test sending event and stop event - [`ad691fb`](https://github.com/run-llama/chat-ui/commit/ad691fbb81d0fca38c75d5f48da6c8b79d297317) refactor: able to set default service via workflow params - [`e477859`](https://github.com/run-llama/chat-ui/commit/e4778597182d3f162ed3e19c5a3599e42c88daa8) update llama-deploy example to switch between workflows - [`f4cab27`](https://github.com/run-llama/chat-ui/commit/f4cab27ec1d5a77907850fe87cbc116faa665a84) update document - [`832d909`](https://github.com/run-llama/chat-ui/commit/832d909c51ccc2bb85de96eeb3c9717253257b68) Create slimy-mails-smash.md - [`2a7f40d`](https://github.com/run-llama/chat-ui/commit/2a7f40d546449ba7a26b0abc4f8a135157ae562f) Update .changeset/slimy-mails-smash.md ### 📊 Changes **16 files changed** (+2032 additions, -94 deletions) <details> <summary>View changed files</summary> ➕ `.changeset/slimy-mails-smash.md` (+6 -0) 📝 `.github/workflows/ci.yml` (+4 -0) 📝 `docs/chat-ui/hooks.mdx` (+13 -13) 📝 `examples/llama-deploy/llama_deploy.yml` (+7 -1) 📝 `examples/llama-deploy/src/adhoc_workflow.py` (+2 -2) ➕ `examples/llama-deploy/src/echo_workflow.py` (+31 -0) 📝 `examples/llama-deploy/ui/app/page.tsx` (+53 -27) 📝 `packages/chat-ui/package.json` (+13 -2) 📝 `packages/chat-ui/src/hook/use-workflow/helper.ts` (+5 -1) 📝 `packages/chat-ui/src/hook/use-workflow/hook.ts` (+13 -8) 📝 `packages/chat-ui/src/hook/use-workflow/types.ts` (+7 -7) ➕ `packages/chat-ui/src/test/__tests__/use-workflow.test.tsx` (+243 -0) ➕ `packages/chat-ui/src/test/mocks/llama-deploy-server.ts` (+151 -0) ➕ `packages/chat-ui/src/test/setup.ts` (+14 -0) ➕ `packages/chat-ui/vitest.config.ts` (+16 -0) 📝 `pnpm-lock.yaml` (+1454 -33) </details> ### 📄 Description _No description provided_ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 03:15:23 -05:00
yindo closed this issue 2026-02-16 03:15:23 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: run-llama/chat-ui#151