Created
June 26, 2018 13:30
-
-
Save mweibel/3549ec9038212e139821deab3896cb64 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