You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 19, 2024. It is now read-only.
In my component, I'm rendering a very simple tree like such: const myTreeData = [ { title: 'Node 1', children: [{ title: 'Child 1' }, { title: 'Child 2' }] }, { title: 'Node 2' }, ]
<SortableTree treeData={myTreeData} />
While this works in my UI, I've noticed that the tests I'm running doesn't render any of the nodes. I know this project was forked, but in the original SortableTree by react-sortable-tree, a solution given here was to use a prop isVirtualized={false}. This then rendered the tree fine in the tests.
I can see that this prop is not used in this new version, however, is there something equivalent that needs to be done to render the tree as expected when testing?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
In my component, I'm rendering a very simple tree like such:
const myTreeData = [ { title: 'Node 1', children: [{ title: 'Child 1' }, { title: 'Child 2' }] }, { title: 'Node 2' }, ]
<SortableTree treeData={myTreeData} />
While this works in my UI, I've noticed that the tests I'm running doesn't render any of the nodes. I know this project was forked, but in the original SortableTree by react-sortable-tree, a solution given here was to use a prop
isVirtualized={false}
. This then rendered the tree fine in the tests.I can see that this prop is not used in this new version, however, is there something equivalent that needs to be done to render the tree as expected when testing?
Thank you in advance.
Beta Was this translation helpful? Give feedback.
All reactions