import mockinstance

This commit is contained in:
Luna D. 2024-05-01 00:15:06 +02:00
parent 41a078a875
commit 6e6fa20e83
No known key found for this signature in database
GPG key ID: 4B1C63448394F688

View file

@ -1,6 +1,7 @@
import { clearDragSource, initDraggables } from '../draggable'; import { clearDragSource, initDraggables } from '../draggable';
import { fireEvent } from '@testing-library/dom'; import { fireEvent } from '@testing-library/dom';
import { getRandomArrayItem } from '../../../test/randomness'; import { getRandomArrayItem } from '../../../test/randomness';
import { MockInstance } from 'vitest';
describe('Draggable Utilities', () => { describe('Draggable Utilities', () => {
// jsdom lacks proper support for window.DragEvent so this is an attempt at a minimal recreation // jsdom lacks proper support for window.DragEvent so this is an attempt at a minimal recreation