{"action":"opened","issue":{"url":"https://api.github.com/repos/angular/angular/issues/13197","repository_url":"https://api.github.com/repos/angular/angular","labels_url":"https://api.github.com/repos/angular/angular/issues/13197/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular/issues/13197/comments","events_url":"https://api.github.com/repos/angular/angular/issues/13197/events","html_url":"https://github.com/angular/angular/issues/13197","id":193036664,"number":13197,"title":"Ability to create component instance with TestBed without HTML","user":{"login":"wesleycho","id":1703387,"avatar_url":"https://avatars.githubusercontent.com/u/1703387?v=3","gravatar_id":"","url":"https://api.github.com/users/wesleycho","html_url":"https://github.com/wesleycho","followers_url":"https://api.github.com/users/wesleycho/followers","following_url":"https://api.github.com/users/wesleycho/following{/other_user}","gists_url":"https://api.github.com/users/wesleycho/gists{/gist_id}","starred_url":"https://api.github.com/users/wesleycho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wesleycho/subscriptions","organizations_url":"https://api.github.com/users/wesleycho/orgs","repos_url":"https://api.github.com/users/wesleycho/repos","events_url":"https://api.github.com/users/wesleycho/events{/privacy}","received_events_url":"https://api.github.com/users/wesleycho/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-02T05:20:42Z","updated_at":"2016-12-02T05:20:42Z","closed_at":null,"body":"**I'm submitting a ...**  (check one with \"x\")\r\n```\r\n[ ] bug report => search github for a similar issue or PR before submitting\r\n[x] feature request\r\n[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question\r\n```\r\n\r\n**Current behavior**\r\n<!-- Describe how the bug manifests. -->\r\nSometimes I find myself testing pure business logic in components without wanting to render the HTML. Currently it renders completely, including DOM interaction & styles.\r\n\r\n**Expected behavior**\r\nI would like the ability to toggle off rendering into the DOM and render the pure JS component instance when configured.\r\n\r\n**Minimal reproduction of the problem with instructions**\r\nN/A\r\n\r\n**What is the motivation / use case for changing the behavior?**\r\nCurrently running a suite of tests is expensive - I have ~350 tests in my work app, and it takes ~1 minute to compile & run them all. We could optimize some on other fronts, but I believe that the DOM rendering is partly to blame for testing performance in Angular 2. In the Angular 1 app we last worked on at my company, we run about 1800 tests in less time, and this app is also using TypeScript.\r\n\r\nStrategies for improving test performance in core is much desired here, as that is one area that I believe can be refined.\r\n\r\n**Please tell us about your environment:** macOS Sierra, Webpack 2, TypeScript 2\r\n\r\n* **Angular version:** Angular 2.1.2\r\n\r\n* **Browser:** Chrome 54, PhantomJS 2.1.7\r\n \r\n* **Language:** TypeScript\r\n\r\n* **Node (for AoT issues):** `node --version` = 4.5\r\n"}}
{"actor":{"display_login":"wesleycho"}}