SVG component tests #1766
-
Hi, I have a React component that uses a SVG as a component. It is referenced like this
When I run the test it gives this error
is there a way to mock the |
Beta Was this translation helpful? Give feedback.
Answered by
sheremet-va
Aug 1, 2022
Replies: 1 comment 6 replies
-
You can use plugins: {
load(id) {
if(id.endsWith(".svg"))
return { code: "export default {}" }
}
} |
Beta Was this translation helpful? Give feedback.
6 replies
Answer selected by
zhex900
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use plugins: