Closed Powershooter83 closed 4 months ago
@Powershooter83 I haven't run across this myself either; that being said we use Playwright for testing the package. Do you happen to have a vitest .spec file to share so I can reproduce this myself? Also, is it because you are invoking useDragAndDrop
without passing correct arguments (or is that just pseudocode you wrote)?
I have now gone through all versions again and updated Vitest from 0.24.5 to 0.25.1 and the problem has not occurred. Therefore it was simply due to outdated dependencies and the problem is solved. Thanks for the help anyway :)
Hello everyone, I use the drag-and-drop library. It works without problems, but when I try to run tests with Vitest / @vue/test-utils, I get errors.
The tests run when I use const parent = useDragAndDrop(). But as soon as I enter values, there is an error:
const [parent, values] = useDragAndDrop(‘test’, ‘test’)
For example, this also gives an error:const [parent] = useDragAndDrop()
But I must say, there are only errors in the tests, in the real frontend it works without any problems. The errors look like this:
There are also no errors when const parent = useDragAndDrop is used. Is the problem with me?