diff --git a/web/app/components/rag-pipeline/components/__tests__/index.spec.tsx b/web/app/components/rag-pipeline/components/__tests__/index.spec.tsx index 36454d33e4..cf7e72d025 100644 --- a/web/app/components/rag-pipeline/components/__tests__/index.spec.tsx +++ b/web/app/components/rag-pipeline/components/__tests__/index.spec.tsx @@ -352,6 +352,10 @@ beforeEach(() => { vi.spyOn(console, 'error').mockImplementation(() => {}) }) +afterEach(() => { + vi.restoreAllMocks() +}) + // Helper to find the name input in PublishAsKnowledgePipelineModal function getNameInput() { return screen.getByPlaceholderText('pipeline.common.publishAsPipeline.namePlaceholder')