-
-
Save yuriitaran/aba79ba4de4b372497c405c4b9a793a8 to your computer and use it in GitHub Desktop.
Mock react-beautiful-dnd
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// mocks react-beautiful-dnd Droppable without the need of a DragDropContext etc. | |
jest.mock('react-beautiful-dnd', () => ({ | |
Droppable: jest.fn( | |
// params to children are `provider`, `snapshot` | |
({children}) => children({}, {}) | |
) | |
})); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment