Title: "ng test" does not bail on type definition errors · Issue #3424 · angular/angular-cli · GitHub
Open Graph Title: "ng test" does not bail on type definition errors · Issue #3424 · angular/angular-cli
X Title: "ng test" does not bail on type definition errors · Issue #3424 · angular/angular-cli
Description: OS Mac OSX - EL Capitan Versions. angular-cli: 1.0.0-beta.19-3 node: 6.4.0 os: darwin x64 Repro steps. Have a default angular-cli setup in place (by running "ng new
Open Graph Description: OS Mac OSX - EL Capitan Versions. angular-cli: 1.0.0-beta.19-3 node: 6.4.0 os: darwin x64 Repro steps. Have a default angular-cli setup in place (by running "ng new
X Description: OS Mac OSX - EL Capitan Versions. angular-cli: 1.0.0-beta.19-3 node: 6.4.0 os: darwin x64 Repro steps. Have a default angular-cli setup in place (by running "ng new <project_name>")...
Opengraph URL: https://github.com/angular/angular-cli/issues/3424
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"\"ng test\" does not bail on type definition errors","articleBody":"### OS\r\nMac OSX - EL Capitan\r\n\r\n### Versions.\r\nangular-cli: 1.0.0-beta.19-3\r\nnode: 6.4.0\r\nos: darwin x64\r\n\r\n### Repro steps.\r\n- Have a default angular-cli setup in place (by running \"ng new \u003cproject_name>\")\r\n- Then there should be `AppComponent` and its spec file created by default.\r\n- Add a new method in `app.component.ts`:\r\n```javascript\r\npublic static returnAorB(character: 'A' | 'B') {\r\n return character;\r\n}\r\n```\r\n\r\nAnd add following line anywhere in `app.component.spec.ts`:\r\n```javascript\r\nexpect(AppComponent.returnAorB('C')).toEqual('C');\r\n```\r\n- Run \"ng test --watch=false\"\r\n\r\nIt will generate an error complaining `Argument of type '\"C\"' is not assignable to parameter of type '\"A\" | \"B\"'.` But the command did not exit. \r\n\r\n### The log given by the failure.\r\n```javascript\r\n....\r\nERROR in [default] \u003cpath>/src/app/app.component.spec.ts:16:35 \r\nArgument of type '\"C\"' is not assignable to parameter of type '\"A\" | \"B\"'.\r\n.....\r\n(Completes and Exits with successful code)\r\n```\r\n","author":{"url":"https://github.com/huyph","@type":"Person","name":"huyph"},"datePublished":"2016-12-06T03:29:37Z","url":"https://github.com/angular/angular-cli/issues/3424"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:30182601-4b57-6ec3-4752-e8b626e0e7b9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A852:E0ADF:1CBE2B8:242F24C:6B023A9D |
| html-safe-nonce | 495d55326605c0d7fe04567fe06f059db2015063fb0dc6a679b1c792763ac46c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBODUyOkUwQURGOjFDQkUyQjg6MjQyRjI0Qzo2QjAyM0E5RCIsInZpc2l0b3JfaWQiOiIzNTczNDM3MjQ3NjExMDkxNjEzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 08eac5110305cfd9f6eb83244b71581dbfdb8659a66dd5990983571776380c62 |
| hovercard-subject-tag | issue:193674159 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular-cli/3424/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e96afb00905232da138e9ee36d28c48c040fb97060481efe70988f45c854a49c/angular/angular-cli/issues/3424 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e96afb00905232da138e9ee36d28c48c040fb97060481efe70988f45c854a49c/angular/angular-cli/issues/3424 |
| og:image:alt | OS Mac OSX - EL Capitan Versions. angular-cli: 1.0.0-beta.19-3 node: 6.4.0 os: darwin x64 Repro steps. Have a default angular-cli setup in place (by running "ng new |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | huyph |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular-cli git https://github.com/angular/angular-cli.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 36891867 |
| octolytics-dimension-repository_nwo | angular/angular-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 36891867 |
| octolytics-dimension-repository_network_root_nwo | angular/angular-cli |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width