{"action":"opened","issue":{"url":"https://api.github.com/repos/getsaf/shallow-render/issues/57","repository_url":"https://api.github.com/repos/getsaf/shallow-render","labels_url":"https://api.github.com/repos/getsaf/shallow-render/issues/57/labels{/name}","comments_url":"https://api.github.com/repos/getsaf/shallow-render/issues/57/comments","events_url":"https://api.github.com/repos/getsaf/shallow-render/issues/57/events","html_url":"https://github.com/getsaf/shallow-render/issues/57","id":354925157,"node_id":"MDU6SXNzdWUzNTQ5MjUxNTc=","number":57,"title":"Error when a component in project has no selector","user":{"login":"Timebutt","id":10674081,"node_id":"MDQ6VXNlcjEwNjc0MDgx","avatar_url":"https://avatars2.githubusercontent.com/u/10674081?v=4","gravatar_id":"","url":"https://api.github.com/users/Timebutt","html_url":"https://github.com/Timebutt","followers_url":"https://api.github.com/users/Timebutt/followers","following_url":"https://api.github.com/users/Timebutt/following{/other_user}","gists_url":"https://api.github.com/users/Timebutt/gists{/gist_id}","starred_url":"https://api.github.com/users/Timebutt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Timebutt/subscriptions","organizations_url":"https://api.github.com/users/Timebutt/orgs","repos_url":"https://api.github.com/users/Timebutt/repos","events_url":"https://api.github.com/users/Timebutt/events{/privacy}","received_events_url":"https://api.github.com/users/Timebutt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-28T22:18:22Z","updated_at":"2018-08-28T22:18:22Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nI started using `shallow-render` today, as it seems to perfectly align with how we want to test our Angular application. So far so good, if it weren't for the fact that I currently keep running into the same error that's blocking me from writing tests using `shallow-render`.\r\n\r\nI'm currently testing a really easy component using the following setup:\r\n\r\n```\r\nlet shallow: Shallow<OverviewCourseComponent>;\r\n\r\nbeforeEach(() => {\r\n    shallow = new Shallow(OverviewCourseComponent, UIModule);\r\n});\r\n\r\nit('should create', async () => {\r\n    const { instance } = await shallow.render('<overview-course></overview-course>');\r\n    expect(instance).toBeTruthy();\r\n});\r\n```\r\n\r\nI get thrown following error however:\r\n\r\n```\r\nDirective MockOfHeaderPickerComponent has no selector, please add it!\r\n```\r\n\r\nAnalysing this error, it seems to originate from this [HeaderPickerComponent](https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/components/date-picker/header-picker.component.ts) that is part of `ng-zorro-antd`, a UI library I use.\r\n\r\nAs the error specifies: this specific component does not have a selector defined. This specific component is part of an external repository I have no control over, so adding one is not possible. \r\n\r\nIs there a way around this issue, or is this a problem with the current implementation of `shallow-render`? I'm currently using version `6.1.2` in my Angular `6.1.4` project.\r\n\r\nThanks!\r\nNils"}}
{"actor":{"display_login":"Timebutt"}}