From b00afff61e9f7602b9b00d83086053960c233139 Mon Sep 17 00:00:00 2001 From: CodingOnStar Date: Mon, 2 Mar 2026 11:31:59 +0800 Subject: [PATCH] fix(tests): correct import paths in chat and context block test files --- .../base/chat/chat-with-history/__tests__/hooks.spec.tsx | 2 +- .../base/chat/embedded-chatbot/__tests__/hooks.spec.tsx | 2 +- .../plugins/context-block/__tests__/index.spec.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/web/app/components/base/chat/chat-with-history/__tests__/hooks.spec.tsx b/web/app/components/base/chat/chat-with-history/__tests__/hooks.spec.tsx index cf76e3945f..711c3c88f9 100644 --- a/web/app/components/base/chat/chat-with-history/__tests__/hooks.spec.tsx +++ b/web/app/components/base/chat/chat-with-history/__tests__/hooks.spec.tsx @@ -41,7 +41,7 @@ vi.mock('@/context/web-app-context', () => ({ })) vi.mock('../../utils', async () => { - const actual = await vi.importActual('../utils') + const actual = await vi.importActual('../../utils') return { ...actual, getProcessedSystemVariablesFromUrlParams: vi.fn().mockResolvedValue({ user_id: 'user-1' }), diff --git a/web/app/components/base/chat/embedded-chatbot/__tests__/hooks.spec.tsx b/web/app/components/base/chat/embedded-chatbot/__tests__/hooks.spec.tsx index 7432e6b51f..9a3340b2af 100644 --- a/web/app/components/base/chat/embedded-chatbot/__tests__/hooks.spec.tsx +++ b/web/app/components/base/chat/embedded-chatbot/__tests__/hooks.spec.tsx @@ -41,7 +41,7 @@ vi.mock('@/context/web-app-context', () => ({ })) vi.mock('../../utils', async () => { - const actual = await vi.importActual('../utils') + const actual = await vi.importActual('../../utils') return { ...actual, getProcessedInputsFromUrlParams: vi.fn().mockResolvedValue({}), diff --git a/web/app/components/base/prompt-editor/plugins/context-block/__tests__/index.spec.tsx b/web/app/components/base/prompt-editor/plugins/context-block/__tests__/index.spec.tsx index 60602694f0..8ca0d80ef2 100644 --- a/web/app/components/base/prompt-editor/plugins/context-block/__tests__/index.spec.tsx +++ b/web/app/components/base/prompt-editor/plugins/context-block/__tests__/index.spec.tsx @@ -12,7 +12,7 @@ import { ContextBlockNode } from '../node' const mockCreateContextBlockNode = vi.fn() vi.mock('../node', async () => { - const actual = await vi.importActual('./node') + const actual = await vi.importActual('../node') return { ...actual,