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:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user