Closed isabellachen closed 4 years ago
I dont know how tests in react are done. svgdom just gives you a normal dom like in the browser windo. As far as I know react uses a virtual dom. So I have no idea how to use them together
Oh ok. Maybe its not possible, I'll have to use Cypress. Thanks for replying :)
The tests in my project use JSDOM, which makes testing the rendering of svg elements impossible. Can I use SVGDOM to help with testing React components with svg in them? How can I do this? In this code, the Map component uses react-simple-maps to render an svg map.
renderWithStores which use react-testing-library.