This content originally appeared on DEV Community and was authored by Mayank
I use vitest to test Next.js app following the official example here.
I get error saying 'InvalidCharacterError: "../../company-logo.svg" did not match the Name production'. Finally I figured out that the image was because of svg imported as components. When I removed svg imports as components, it worked fine.
I…
This content originally appeared on DEV Community and was authored by Mayank

Mayank | Sciencx (2023-03-12T15:49:52+00:00) How to test Next.js app with svg imports as component using vitest?. Retrieved from https://www.scien.cx/2023/03/12/how-to-test-next-js-app-with-svg-imports-as-component-using-vitest/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.