feat(tests): add comprehensive tests for Processing and EmbeddingProcess components (#29873)

Co-authored-by: CodingOnStar <hanxujiang@dify.ai>
Co-authored-by: yyh <92089059+lyzno1@users.noreply.github.com>
This commit is contained in:
Coding On Star
2025-12-19 15:21:21 +08:00
committed by GitHub
parent 933bc72fd7
commit d7b8db2afc
19 changed files with 7015 additions and 229 deletions

View File

@@ -11,24 +11,6 @@ const mockResetWorkflowVersionHistory = jest.fn()
let appDetail: App
jest.mock('ky', () => ({
__esModule: true,
default: {
create: () => ({
extend: () => async () => ({
status: 200,
headers: new Headers(),
json: async () => ({}),
blob: async () => new Blob(),
clone: () => ({
status: 200,
json: async () => ({}),
}),
}),
}),
},
}))
jest.mock('@/app/components/app/store', () => ({
__esModule: true,
useStore: (selector: (state: { appDetail?: App; setCurrentLogItem: typeof mockSetCurrentLogItem; setShowMessageLogModal: typeof mockSetShowMessageLogModal }) => unknown) => mockUseAppStoreSelector(selector),