{"action":"created","issue":{"url":"https://api.github.com/repos/visualfanatic/vue-svg-loader/issues/38","repository_url":"https://api.github.com/repos/visualfanatic/vue-svg-loader","labels_url":"https://api.github.com/repos/visualfanatic/vue-svg-loader/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/visualfanatic/vue-svg-loader/issues/38/comments","events_url":"https://api.github.com/repos/visualfanatic/vue-svg-loader/issues/38/events","html_url":"https://github.com/visualfanatic/vue-svg-loader/issues/38","id":344283162,"node_id":"MDU6SXNzdWUzNDQyODMxNjI=","number":38,"title":"How to add it to Jest configuration?","user":{"login":"koresar","id":1622575,"node_id":"MDQ6VXNlcjE2MjI1NzU=","avatar_url":"https://avatars0.githubusercontent.com/u/1622575?v=4","gravatar_id":"","url":"https://api.github.com/users/koresar","html_url":"https://github.com/koresar","followers_url":"https://api.github.com/users/koresar/followers","following_url":"https://api.github.com/users/koresar/following{/other_user}","gists_url":"https://api.github.com/users/koresar/gists{/gist_id}","starred_url":"https://api.github.com/users/koresar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koresar/subscriptions","organizations_url":"https://api.github.com/users/koresar/orgs","repos_url":"https://api.github.com/users/koresar/repos","events_url":"https://api.github.com/users/koresar/events{/privacy}","received_events_url":"https://api.github.com/users/koresar/received_events","type":"User","site_admin":false},"labels":[{"id":1004236895,"node_id":"MDU6TGFiZWwxMDA0MjM2ODk1","url":"https://api.github.com/repos/visualfanatic/vue-svg-loader/labels/Docs%20mention","name":"Docs mention","color":"1d76db","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-07-25T03:54:22Z","updated_at":"2018-07-25T10:50:51Z","closed_at":null,"author_association":"NONE","body":"The `MyComponent` is importing an SVG file, and then using it in the code. I cannot unit test such component because vue-svg-loader is not configured in my Jest.\r\n\r\n```js\r\nimport { shallowMount } from \"@vue/test-utils\";\r\nimport MyComponent from \"../MyComponent\";\r\n\r\ndescribe(\"MyComponent.vue\", () => {\r\n    it(\"should put new date if is was passed via props\", async () => {\r\n        const wrapper = shallowMount(Login, {\r\n            propsData: {\r\n                value: \"2018-01-05\"\r\n            }\r\n        });\r\n```\r\n\r\nThe unit test throws... Cannot render the SVG.\r\n\r\nHow to add `vue-svg-loader` to the Jest configuration?"},"comment":{"url":"https://api.github.com/repos/visualfanatic/vue-svg-loader/issues/comments/407714406","html_url":"https://github.com/visualfanatic/vue-svg-loader/issues/38#issuecomment-407714406","issue_url":"https://api.github.com/repos/visualfanatic/vue-svg-loader/issues/38","id":407714406,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNzcxNDQwNg==","user":{"login":"visualfanatic","id":920747,"node_id":"MDQ6VXNlcjkyMDc0Nw==","avatar_url":"https://avatars3.githubusercontent.com/u/920747?v=4","gravatar_id":"","url":"https://api.github.com/users/visualfanatic","html_url":"https://github.com/visualfanatic","followers_url":"https://api.github.com/users/visualfanatic/followers","following_url":"https://api.github.com/users/visualfanatic/following{/other_user}","gists_url":"https://api.github.com/users/visualfanatic/gists{/gist_id}","starred_url":"https://api.github.com/users/visualfanatic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/visualfanatic/subscriptions","organizations_url":"https://api.github.com/users/visualfanatic/orgs","repos_url":"https://api.github.com/users/visualfanatic/repos","events_url":"https://api.github.com/users/visualfanatic/events{/privacy}","received_events_url":"https://api.github.com/users/visualfanatic/received_events","type":"User","site_admin":false},"created_at":"2018-07-25T10:50:51Z","updated_at":"2018-07-25T10:50:51Z","author_association":"OWNER","body":"@koresar have you had a chance to test the solution above?"}}
{"actor":{"display_login":"visualfanatic"}}