From 97af41b2f547d99d4d5b987cccd25df8c5575c78 Mon Sep 17 00:00:00 2001 From: Stephen Zhou <38493346+hyoban@users.noreply.github.com> Date: Wed, 11 Feb 2026 14:41:19 +0800 Subject: [PATCH] fix test --- web/app/components/rag-pipeline/hooks/use-pipeline-run.spec.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/app/components/rag-pipeline/hooks/use-pipeline-run.spec.ts b/web/app/components/rag-pipeline/hooks/use-pipeline-run.spec.ts index 2b21001839..f35e20f251 100644 --- a/web/app/components/rag-pipeline/hooks/use-pipeline-run.spec.ts +++ b/web/app/components/rag-pipeline/hooks/use-pipeline-run.spec.ts @@ -92,8 +92,10 @@ vi.mock('@/service/workflow', () => ({ })) const mockInvalidAllLastRun = vi.fn() +const mockInvalidateWorkflowRunHistory = vi.fn() vi.mock('@/service/use-workflow', () => ({ useInvalidAllLastRun: () => mockInvalidAllLastRun, + useInvalidateWorkflowRunHistory: () => mockInvalidateWorkflowRunHistory, })) // Mock FlowType