react-beautiful-dnd-test-utils
TypeScript icon, indicating that this package has built-in type declarations

4.1.1 • Public • Published

react-beautiful-dnd-test-utils

gloves

Test utils for react-beautiful-dnd (rbd) built with react-testing-library.



Build Status NPM Version Downloads MIT License

Installation

This module is distributed via npm, which is bundled with node, and should be installed as one of your project's devDependencies:

npm install --save-dev react-beautiful-dnd-test-utils

The following packages must also be installed:

  • @testing-library/jest-dom
  • @testing-library/react
  • @testing-library/user-event
  • jest

Supported versions of rbd

Versions 3+ of this library supports testing rbd version 12+. Use version 2 of this library for testing rbd version 11.

Usage

Currently supports moving a <Draggable /> n positions up or down inside a <Droppable />.

See an example test.

License

MIT

Package Sidebar

Install

npm i react-beautiful-dnd-test-utils

Weekly Downloads

29,532

Version

4.1.1

License

MIT

Unpacked Size

19.8 kB

Total Files

12

Last publish

Collaborators

  • colinrobertbrooks