Search code examples
vue.jsdrag-and-dropjestjsdraggable

How to test drag and drop with vue and jest


Is there a good way to test drag and drop with jest and vue and vue.draggable?

I tried to have a look at the test in the vue.draggable plugin, but I could not find any. Is it really untested?


Solution

  • Check: https://github.com/SortableJS/Vue.Draggable/tree/master/tests/unit

    The unit tests are not faking drag and drop in itself, but there are emulating events and DOM manipulation performed by Sortable.js, and test vue.draggable reaction to these inputs