tanem / react-svg

:art: A React component that injects SVG into the DOM.

Home Page:https://npm.im/react-svg

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unit test cases are failing, if i use ReactSVG.

ChandraKalyan-B opened this issue · comments

Tech: React + Vite

image
image

If I comment out the ReactSVG code, the unit test cases were passing. I am not able to understand what to do.

Hi @ChandraKalyan-B, looks like you need to handle the AJAX requests this library makes under the hood. There's an explanation in a previous issue here that you might find useful.

I tried but still, the error is coming.

I tried but still, the error is coming.

I'll need to see a complete code example to help further with this.

Closing due to inactivity.