Title: `ng test` not reporting TypeScript errors · Issue #5863 · angular/angular-cli · GitHub
Open Graph Title: `ng test` not reporting TypeScript errors · Issue #5863 · angular/angular-cli
X Title: `ng test` not reporting TypeScript errors · Issue #5863 · angular/angular-cli
Description: Bug Report or Feature Request (mark with an x) - [x] bug report - [ ] feature request Versions. @angular/cli: 1.0.0 node: 6.9.1 os: darwin x64 (El Capitan) @angular/common: 4.0.1 @angular/compiler: 4.0.1 @angular/core: 4.0.1 @angular/for...
Open Graph Description: Bug Report or Feature Request (mark with an x) - [x] bug report - [ ] feature request Versions. @angular/cli: 1.0.0 node: 6.9.1 os: darwin x64 (El Capitan) @angular/common: 4.0.1 @angular/compiler:...
X Description: Bug Report or Feature Request (mark with an x) - [x] bug report - [ ] feature request Versions. @angular/cli: 1.0.0 node: 6.9.1 os: darwin x64 (El Capitan) @angular/common: 4.0.1 @angular/compiler:...
Opengraph URL: https://github.com/angular/angular-cli/issues/5863
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`ng test` not reporting TypeScript errors","articleBody":"### Bug Report or Feature Request (mark with an `x`)\r\n```\r\n- [x] bug report\r\n- [ ] feature request\r\n```\r\n\r\n### Versions.\r\n@angular/cli: 1.0.0\r\nnode: 6.9.1\r\nos: darwin x64 (El Capitan)\r\n@angular/common: 4.0.1\r\n@angular/compiler: 4.0.1\r\n@angular/core: 4.0.1\r\n@angular/forms: 4.0.1\r\n@angular/http: 4.0.1\r\n@angular/platform-browser: 4.0.1\r\n@angular/platform-browser-dynamic: 4.0.1\r\n@angular/router: 4.0.1\r\n@angular/cli: 1.0.0\r\n@angular/compiler-cli: 4.0.1\r\n\r\n\r\n### Repro steps.\r\n- Perform a fresh install with `ng new`\r\n- Add the following test to `src/app/app.component.spec.ts`\r\n```typescript\r\nit('should not compile if there are TypeScript errors', () => {\r\n const myFunc = (arg: string) => {};\r\n myFunc(1);\r\n});\r\n```\r\n- run `ng test --single-run` and see that there are no errors\r\n- run `tsc --project src/tsconfig.spec.json` and see a type error \r\n\r\n\r\n### The log given by the failure.\r\nNo errors are reported. The code compiles and the tests pass.\r\n\r\n\r\n### Desired functionality.\r\nThe following compilation error should be reported and the tests should not be run:\r\n> src/app/app.component.spec.ts(39,12): error TS2345: Argument of type '1' is not assignable to parameter of type 'string'.\r\n\r\n","author":{"url":"https://github.com/jeffkenney","@type":"Person","name":"jeffkenney"},"datePublished":"2017-04-06T19:30:44Z","url":"https://github.com/angular/angular-cli/issues/5863"}
| 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:7493f841-343f-529e-cdb9-61eb362de1eb |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E0DC:2270F4:2BF1427:3A5A6D1:6B01C5D9 |
| html-safe-nonce | d171df1bbbb9d09b2976b3a2b06051e59cf98ecaaeb951b8567fe50ecff46ec9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMERDOjIyNzBGNDoyQkYxNDI3OjNBNUE2RDE6NkIwMUM1RDkiLCJ2aXNpdG9yX2lkIjoiMzU0NDIyNTU4MTU5ODA5ODkwNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d65a3111860e9903f6b6cef8fb7ed62ef259e7698a0fc7d121c9d6d818361c98 |
| hovercard-subject-tag | issue:220007276 |
| 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/5863/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c2c859189cb5c4288bb011f8a57a0b45672b949257766430ec7e5c38633aec7e/angular/angular-cli/issues/5863 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c2c859189cb5c4288bb011f8a57a0b45672b949257766430ec7e5c38633aec7e/angular/angular-cli/issues/5863 |
| og:image:alt | Bug Report or Feature Request (mark with an x) - [x] bug report - [ ] feature request Versions. @angular/cli: 1.0.0 node: 6.9.1 os: darwin x64 (El Capitan) @angular/common: 4.0.1 @angular/compiler:... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jeffkenney |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| 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 | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width