[PR #29825] chore: enhance Jest setup and add new tests for dataset creation components #32563

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

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

State: closed
Merged: Yes


chore: enhance Jest setup and add new tests for dataset creation components

  • Mocked Web Animations API in jest.setup.ts to prevent act() warnings from Headless UI.
  • Added jsdom-testing-mocks dependency for improved testing capabilities.
  • Created comprehensive tests for DatasetUpdateForm and EmptyDatasetCreationModal components, covering rendering, state management, user interactions, and validation.
  • Introduced LanguageSelect and PreviewItem components with corresponding tests to ensure functionality and styling.
  • Updated Input placeholder handling in EmptyDatasetCreationModal for consistency.
**Original Pull Request:** https://github.com/langgenius/dify/pull/29825 **State:** closed **Merged:** Yes --- chore: enhance Jest setup and add new tests for dataset creation components - Mocked Web Animations API in jest.setup.ts to prevent act() warnings from Headless UI. - Added jsdom-testing-mocks dependency for improved testing capabilities. - Created comprehensive tests for DatasetUpdateForm and EmptyDatasetCreationModal components, covering rendering, state management, user interactions, and validation. - Introduced LanguageSelect and PreviewItem components with corresponding tests to ensure functionality and styling. - Updated Input placeholder handling in EmptyDatasetCreationModal for consistency.
yindo added the pull-request label 2026-02-21 20:51:38 -05:00
yindo closed this issue 2026-02-21 20:51:38 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#32563