Skip to content

tomgowans/react-beautiful-dnd-test-utils

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-beautiful-dnd-test-utils

gloves

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



npm version code style: prettier

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

jest, @testing-library/jest-dom and @testing-library/react must also be installed.

Supported versions of rbd

Version 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 in the react-beautiful-dnd-test-utils-example repo.

License

MIT

About

Test utils for react-beautiful-dnd built with react-testing-library 🧤

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%