{"action":"created","issue":{"url":"https://api.github.com/repos/vuejs/vue-test-utils/issues/1053","repository_url":"https://api.github.com/repos/vuejs/vue-test-utils","labels_url":"https://api.github.com/repos/vuejs/vue-test-utils/issues/1053/labels{/name}","comments_url":"https://api.github.com/repos/vuejs/vue-test-utils/issues/1053/comments","events_url":"https://api.github.com/repos/vuejs/vue-test-utils/issues/1053/events","html_url":"https://github.com/vuejs/vue-test-utils/issues/1053","id":387205926,"node_id":"MDU6SXNzdWUzODcyMDU5MjY=","number":1053,"title":"Custom element in scopedSlots doesn't work","user":{"login":"renanbronchart","id":16922579,"node_id":"MDQ6VXNlcjE2OTIyNTc5","avatar_url":"https://avatars3.githubusercontent.com/u/16922579?v=4","gravatar_id":"","url":"https://api.github.com/users/renanbronchart","html_url":"https://github.com/renanbronchart","followers_url":"https://api.github.com/users/renanbronchart/followers","following_url":"https://api.github.com/users/renanbronchart/following{/other_user}","gists_url":"https://api.github.com/users/renanbronchart/gists{/gist_id}","starred_url":"https://api.github.com/users/renanbronchart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/renanbronchart/subscriptions","organizations_url":"https://api.github.com/users/renanbronchart/orgs","repos_url":"https://api.github.com/users/renanbronchart/repos","events_url":"https://api.github.com/users/renanbronchart/events{/privacy}","received_events_url":"https://api.github.com/users/renanbronchart/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-04T10:00:58Z","updated_at":"2018-12-06T17:21:10Z","closed_at":null,"author_association":"NONE","body":"### Version\r\n1.0.0-beta.25\r\n\r\n### Reproduction link\r\n[https://github.com/renanbronchart/gommette/tree/feat/components_accordion](https://github.com/renanbronchart/gommette/tree/feat/components_accordion)\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n### Steps to reproduce\r\nI write test for component Accordion who use scopedSlots with custom component. \r\nBut when run my test, the custom component in scoped slot is not register.\r\n\r\nI register my component in localVue but it seems doesn't work.\r\n\r\n### What is expected?\r\nMy component custom inner scoped slot should be register\r\n\r\n### What is actually happening?\r\nMy component custom inner scoped slot is not register\r\n\r\n---\r\n### My test\r\n```\r\n\r\n      import { GoAccordion, GoCollapse } from '../../../src'\r\n\r\n      const localVue = createLocalVue()\r\n\r\n\r\n      localVue.component('go-collapse', GoCollapse)\r\n\r\n      wrapper = mount(GoAccordion, {\r\n        localVue,\r\n        propsData: {\r\n          listItems: newItems\r\n        },\r\n        scopedSlots: {\r\n          default: `<template slot-scope=\"{ items }\">\r\n              <go-collapse\r\n                v-for=\"(item, key) in items\"\r\n                :key=\"key\"\r\n                :index=\"key\"\r\n                :item=\"item\"\r\n                :beDeleted=\"true\"\r\n              />\r\n            </template>\r\n          `\r\n        },\r\n        components: {\r\n           GoCollapse\r\n        }\r\n      })\r\n\r\n```\r\n### My errror in console\r\n\r\n```\r\n    [Vue warn]: Unknown custom element: <go-collapse> - did you register the component correctly? For recursive components, make sure to provide the \"name\" option.\r\n```\r\n\r\n<!-- generated by vue-issues. DO NOT REMOVE -->"},"comment":{"url":"https://api.github.com/repos/vuejs/vue-test-utils/issues/comments/444954881","html_url":"https://github.com/vuejs/vue-test-utils/issues/1053#issuecomment-444954881","issue_url":"https://api.github.com/repos/vuejs/vue-test-utils/issues/1053","id":444954881,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NDk1NDg4MQ==","user":{"login":"ronaldborman","id":556143,"node_id":"MDQ6VXNlcjU1NjE0Mw==","avatar_url":"https://avatars1.githubusercontent.com/u/556143?v=4","gravatar_id":"","url":"https://api.github.com/users/ronaldborman","html_url":"https://github.com/ronaldborman","followers_url":"https://api.github.com/users/ronaldborman/followers","following_url":"https://api.github.com/users/ronaldborman/following{/other_user}","gists_url":"https://api.github.com/users/ronaldborman/gists{/gist_id}","starred_url":"https://api.github.com/users/ronaldborman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ronaldborman/subscriptions","organizations_url":"https://api.github.com/users/ronaldborman/orgs","repos_url":"https://api.github.com/users/ronaldborman/repos","events_url":"https://api.github.com/users/ronaldborman/events{/privacy}","received_events_url":"https://api.github.com/users/ronaldborman/received_events","type":"User","site_admin":false},"created_at":"2018-12-06T17:21:10Z","updated_at":"2018-12-06T17:21:10Z","author_association":"NONE","body":"I have the same problem.\r\n\r\nMy observation is that when you register the component with the global Vue class, it works (regardless if you use localVue or not). But that pollutes the global Vue class. If you register it on localVue and use that when mounting the component, then the error mentioned above is displayed.\r\n\r\nIt also only happens with scoped slots because with regular slots the custom element is recognized after you register it on localVue."}}
{"actor":{"display_login":"ronaldborman"}}