Files
dify/web/app/components/datasets/documents/create-from-pipeline/processing
CodingOnStar dae130d8d2 refactor(tests): improve mock document creation and enhance test stability
- Updated the  function to use a deterministic counter for IDs, reducing flakiness in tests.
- Ensured the ID counter resets before each test to maintain reproducibility.
- Adjusted assertions in the  tests to explicitly check for error handling when the documents array is empty, improving clarity and reliability of edge case testing.
- Fixed a link in the  tests to ensure it points to the correct documentation URL.

These changes enhance the robustness and reliability of the testing suite for document processing components.
2025-12-18 18:50:21 +08:00
..