My code passes all tests except the one related to the “tooltip”. It demands the tooltip to disappear when the mouse cursor is not over a rect element. Well it is. So I have figured out that it is the structure of the react app that prevent tests to pass. Maybe I am wrong. I wanted to make the graph adjustable to a viewport size and to understand how this library works in react environment. And I have tried many possible tricks to avoid that tests behavior. I fail, so I need help. If somebody knows how to make the test understand that everything works fine?
Or should I get back to only a non frontend library solution?
Here is the link to codepen: https://codepen.io/ovr58/pen/yLwmJVX