mirror of
https://github.com/lobehub/lobe-chat.git
synced 2026-06-14 03:30:19 +00:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 37214c27e8 |
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"name": "@lobechat/server",
|
||||
"version": "0.0.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"type-check": "tsc --noEmit"
|
||||
}
|
||||
}
|
||||
+2
-2
@@ -3763,9 +3763,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