Problem rendering component generated using vite-plugin-svgr in a jest test using testing-library/react render method
I am developing a React APP using the development environment Vite. Since Vite is well supported I included several plugins that work pretty well with it, particularly one that give me the opportunity for creating components directly importing an *.svg in a particular format. It is called vite-plugin-svgr
and you can create a component in the following way just including ?react
at the end: