You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I am trying to write a unit test to verify that some useDrag cannot be dragged under some conditions however the way that I have found to test throws an Invariant Violation: Cannot call hover while not dragging. error.
Reproduction
This is how I do the test
constfirstItem=discover.getSingleElement("slot-index","1").discovered;// This item has `canDrag: false`constsecondItem=discover.getSingleElement("hotbar-item-id","some-id").discovered;fireEvent.dragStart(firstItem);fireEvent.dragEnter(secondItem);fireEvent.dragOver(secondItem);fireEvent.drop(firstItem);
Expected behavior
Nothing to been thrown but also not calls drop.
The text was updated successfully, but these errors were encountered:
Describe the bug
I am trying to write a unit test to verify that some
useDrag
cannot be dragged under some conditions however the way that I have found to test throws anInvariant Violation: Cannot call hover while not dragging.
error.Reproduction
This is how I do the test
Expected behavior
Nothing to been thrown but also not calls
drop
.The text was updated successfully, but these errors were encountered: