mirror of
https://github.com/lobehub/lobe-chat.git
synced 2026-06-14 03:30:19 +00:00
Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 3605879cfa | |||
| 5ef1b27348 | |||
| f5ce15d45c | |||
| edfcdc0dd6 | |||
| 2c369eadc4 | |||
| 590787f14b | |||
| 1ccec34ae7 | |||
| 908e702d98 |
@@ -32,7 +32,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
name: Test Packages
|
||||
env:
|
||||
PACKAGES: '@lobechat/file-loaders @lobechat/prompts @lobechat/model-runtime @lobechat/web-crawler @lobechat/electron-server-ipc @lobechat/utils @lobechat/python-interpreter @lobechat/context-engine @lobechat/agent-runtime @lobechat/conversation-flow @lobechat/ssrf-safe-fetch @lobechat/memory-user-memory @lobechat/types @lobechat/builtin-tool-lobe-agent model-bank'
|
||||
PACKAGES: '@lobechat/file-loaders @lobechat/prompts @lobechat/model-runtime @lobechat/web-crawler @lobechat/electron-server-ipc @lobechat/utils @lobechat/python-interpreter @lobechat/context-engine @lobechat/agent-runtime @lobechat/conversation-flow @lobechat/ssrf-safe-fetch @lobechat/memory-user-memory @lobechat/types @lobechat/trpc @lobechat/env @lobechat/builtin-tool-lobe-agent model-bank'
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"name": "@lobechat/server",
|
||||
"version": "0.0.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"type-check": "tsc --noEmit"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
export {};
|
||||
+2
-2
@@ -3260,9 +3260,9 @@ describe('RuntimeExecutors', () => {
|
||||
|
||||
// Import real implementations directly from source (bypassing the @lobechat/model-runtime mock)
|
||||
const { consumeStreamUntilDone: realConsume } =
|
||||
await import('../../../../../packages/model-runtime/src/utils/consumeStream');
|
||||
await import('../../../../../../packages/model-runtime/src/utils/consumeStream');
|
||||
const { createCallbacksTransformer } =
|
||||
await import('../../../../../packages/model-runtime/src/core/streams/protocol');
|
||||
await import('../../../../../../packages/model-runtime/src/core/streams/protocol');
|
||||
|
||||
// Use real consumeStreamUntilDone so the stream is actually consumed
|
||||
vi.mocked(consumeStreamUntilDone).mockImplementation(realConsume);
|
||||
-1
@@ -188,7 +188,6 @@ describe('AssistantStore', () => {
|
||||
global.fetch = vi.fn().mockRejectedValue(new Error('something else'));
|
||||
const store = new AssistantStore();
|
||||
|
||||
|
||||
vi.spyOn(console, 'error').mockImplementation(() => {});
|
||||
|
||||
await expect(store.getAgentIndex()).rejects.toThrow('something else');
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user