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

@@ -33,16 +33,6 @@ jest.mock('react-i18next', () => ({
},
}))
// ky is an ESM-only package; mock it to keep Jest (CJS) specs running.
jest.mock('ky', () => ({
__esModule: true,
default: {
create: () => ({
extend: () => async () => new Response(),
}),
},
}))
// Avoid heavy emoji dataset initialization during unit tests.
jest.mock('emoji-mart', () => ({
init: jest.fn(),