[PR #29873] feat(tests): add comprehensive tests for Processing and EmbeddingProcess components #32594

Closed
opened 2026-02-21 20:51:42 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langgenius/dify/pull/29873

State: closed
Merged: Yes


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

  • Introduced new test files for Processing and EmbeddingProcess components, covering rendering, props variations, edge cases, and memoization.
  • Added mock implementations for external dependencies to facilitate testing.
  • Enhanced Jest configuration to handle module resolution for lodash and ky.
  • Created a mock for the ky HTTP client to avoid ESM issues in Jest tests.
  • Updated Processing component to handle optional chaining for retrieval method.

This commit significantly improves test coverage and stability for the document processing features.

**Original Pull Request:** https://github.com/langgenius/dify/pull/29873 **State:** closed **Merged:** Yes --- feat(tests): add comprehensive tests for Processing and EmbeddingProcess components - Introduced new test files for Processing and EmbeddingProcess components, covering rendering, props variations, edge cases, and memoization. - Added mock implementations for external dependencies to facilitate testing. - Enhanced Jest configuration to handle module resolution for lodash and ky. - Created a mock for the ky HTTP client to avoid ESM issues in Jest tests. - Updated Processing component to handle optional chaining for retrieval method. This commit significantly improves test coverage and stability for the document processing features.
yindo added the pull-request label 2026-02-21 20:51:42 -05:00
yindo closed this issue 2026-02-21 20:51:42 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#32594