Are you reporting a bug, or opening a feature request?
Feature request
I want to make use of react-d3-tree in my unit tests.
What is the actual behavior/output?
I have a unit test of a react component which uses the react-d3-tree under the hood.
The unit test is executed via vitest.
When I run the unit test, then I get this error in the console and assertions on the tree UI are not working:
Are you reporting a bug, or opening a feature request?
Feature request
I want to make use of react-d3-tree in my unit tests.
What is the actual behavior/output?
I have a unit test of a react component which uses the react-d3-tree under the hood. The unit test is executed via
vitest
. When I run the unit test, then I get this error in the console and assertions on the tree UI are not working:What is the behavior/output you expect?
That I do not see any errors and the test can assert stuff inside the tree.
Any workaround is also welcome. I did not find a way to mock the not working part.
Can you consistently reproduce the issue/create a reproduction case (e.g. on https://codesandbox.io)?
Yes, but in a private codebase. Would take some effort to extract it. Therefore, I would wait for a response here first.
What version of react-d3-tree are you using?
3.5.0