UNPKG

react-beautiful-dnd-test-utils

Version:
16 lines (15 loc) 739 B
/// <reference types="jest" /> /// <reference types="testing-library__jest-dom" /> import '@testing-library/jest-dom'; export declare const mockGetComputedStyle: () => jest.SpyInstance<CSSStyleDeclaration>; export declare const DND_DROPPABLE_DATA_ATTR = "[data-rbd-droppable-id]"; export declare const DND_DRAGGABLE_DATA_ATTR = "[data-rbd-draggable-id]"; export declare const mockDndSpacing: (container: HTMLElement) => void; export declare const DND_DIRECTION_UP = "UP"; export declare const DND_DIRECTION_DOWN = "DOWN"; export declare const makeDnd: ({ text, getDragElement, direction, positions }: { text?: string; getDragElement?: () => Element | null; direction: 'UP' | 'DOWN'; positions: number; }) => Promise<void>;