mirror of
https://github.com/langgenius/dify.git
synced 2026-04-28 22:48:07 +08:00
test: restore mocks in rag pipeline tests
This commit is contained in:
@ -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')
|
||||
|
||||
Reference in New Issue
Block a user