react-drag-listview
react-drag-listview copied to clipboard
ReactDragListview won't render in jest test render method
We have a ReactDragListview component inside another component. When we go to test that component in jest, the render method fails with the error:
Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.
If we remove our ReactDragListview wrapper, our test passes just fine. I'm noticing that in some of your examples you import from 'react-drag-listview/src/index.js, but we can't import from that either. I'll continue to do some digging, but for now I'm going to guess it's somewhere in the export syntax. Any help is greatly appreciated!