Hey folks we are running into a few issues with jest and isSvg inside of plasmicImg. It has something to do with import and exporting the paths. Wondering if anyone else ran into this issue or knows about this issue that can give better insight? We might look into a transformer.
hmmm yes, I think for jest to be able to import image files it needs to use a transformer. I’m guessing the existing transformer is doing something PlasmicImg
does not expect.
What do you see if you import the image and log it to the console at the begining of the test?
We believe we resolved the issue, our file mocks had to be updated.