Open nirajfu3e opened 2 years ago
Thanks for the package as it has been very useful.
I am having an issue where using this package seems to break the jest test with errors like:
Error: Cannot find module 'SVGPATH/foo.svg' from 'Icon.vue'
I am using the SVGPath in a vue component as follows:
// Icon.vue getIcon(icon) { return require(`SVGPATH/${icon}.svg`); }
Tried adding the following to jest.setup.js but no luck:
jest.setup.js
const mix = require('laravel-mix'); require('laravel-mix-vue-svgicon');
Is there any way we can get this working with the test suite? Thanks.
Thanks for the package as it has been very useful.
I am having an issue where using this package seems to break the jest test with errors like:
I am using the SVGPath in a vue component as follows:
Tried adding the following to
jest.setup.js
but no luck:Is there any way we can get this working with the test suite? Thanks.