vite svg loader with typescript gives error when running jest test
Closed this issue · 4 comments
ahyagoub40 commented
Configuration error:
Could not locate module @assets/images/icon-calendar.svg?component mapped as:
/Users/ahmedyagoub/plankk/phoenix/src/assets/$1.
Please check your configuration for these entries:
{
"moduleNameMapper": {
"/@assets\/(.*)/": "/Users/ahmedyagoub/plankk/phoenix/src/assets/$1"
},
"resolver": undefined
}
```
jpkleemans commented
Hi, thanks for reporting. Could you maybe share your project (or a test project) so I can reproduce this error, and investigate how to resolve it.
ahyagoub40 commented
How would you map it in Jest
I am using the svg loader in vue with typescript project, the way it is described in the readme, when i run my tests, I get that message
jpkleemans commented
Hi, have you tried the steps in #35?
jpkleemans commented
Closed after 60 days of inactivity