Skip to content

Draggable - Fix missing Jest imports and typing in dispose test#33791

Merged
aleksei-semikozov merged 1 commit into
26_1from
draggable-test-imports
Jun 2, 2026
Merged

Draggable - Fix missing Jest imports and typing in dispose test#33791
aleksei-semikozov merged 1 commit into
26_1from
draggable-test-imports

Conversation

@aleksei-semikozov
Copy link
Copy Markdown
Contributor

No description provided.

@aleksei-semikozov aleksei-semikozov self-assigned this Jun 2, 2026
@aleksei-semikozov aleksei-semikozov marked this pull request as ready for review June 2, 2026 13:12
Copilot AI review requested due to automatic review settings June 2, 2026 13:12
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes Jest test for Draggable dispose safety by adding explicit imports from @jest/globals and passing a DOM element instead of a jQuery-like wrapper to the Sortable constructor to satisfy typing.

Changes:

  • Added explicit @jest/globals imports for beforeEach, describe, expect, it.
  • Pass $container.get(0) (a DOM Element) instead of the renderer wrapper to new Sortable(...).

@aleksei-semikozov aleksei-semikozov merged commit b71d737 into 26_1 Jun 2, 2026
128 of 130 checks passed
@aleksei-semikozov aleksei-semikozov deleted the draggable-test-imports branch June 2, 2026 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants