Title: Karma testing output not the same in angular/cli versions after 1.0.6 · Issue #6583 · angular/angular-cli · GitHub
Open Graph Title: Karma testing output not the same in angular/cli versions after 1.0.6 · Issue #6583 · angular/angular-cli
X Title: Karma testing output not the same in angular/cli versions after 1.0.6 · Issue #6583 · angular/angular-cli
Description: Bug Report or Feature Request (mark with an x) - [x] bug report -> please search issues before submitting - [ ] feature request Versions. Summary: @angular/cli: 1.1.0 (replicated on 1.2.0-beta.0) node: v6.9.1 (replicated on 8.0.0) npm: 4...
Open Graph Description: Bug Report or Feature Request (mark with an x) - [x] bug report -> please search issues before submitting - [ ] feature request Versions. Summary: @angular/cli: 1.1.0 (replicated on 1.2.0-beta.0) n...
X Description: Bug Report or Feature Request (mark with an x) - [x] bug report -> please search issues before submitting - [ ] feature request Versions. Summary: @angular/cli: 1.1.0 (replicated on 1.2.0-beta.0...
Opengraph URL: https://github.com/angular/angular-cli/issues/6583
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Karma testing output not the same in angular/cli versions after 1.0.6 ","articleBody":"### Bug Report or Feature Request (mark with an `x`)\r\n```\r\n- [x] bug report -> please search issues before submitting\r\n- [ ] feature request\r\n```\r\n\r\n### Versions.\r\nSummary:\r\n```\r\n@angular/cli: 1.1.0 (replicated on 1.2.0-beta.0)\r\nnode: v6.9.1 (replicated on 8.0.0)\r\nnpm: 4.6.1 (replicated on 5.0.0)\r\nOS: macOS Sierra 10.12.4 (replicated on Windows 7 too)\r\n```\r\nFull:\r\n```\r\n@angular/cli: 1.1.0\r\nnode: 6.9.1\r\nos: darwin x64\r\n@angular/animations: 4.1.3\r\n@angular/common: 4.1.3\r\n@angular/compiler: 4.1.3\r\n@angular/compiler-cli: 4.1.3\r\n@angular/core: 4.1.3\r\n@angular/forms: 4.1.3\r\n@angular/http: 4.1.3\r\n@angular/platform-browser: 4.1.3\r\n@angular/platform-browser-dynamic: 4.1.3\r\n@angular/platform-server: 4.1.3\r\n@angular/router: 4.1.3\r\n@angular/cli: 1.1.0\r\n```\r\n\r\n### Repro steps.\r\nCreate a project, write some unit tests, make at least one test fail (e.g. expect true to be false), run `ng test`\r\n\r\n`karma.conf.js` has these features:\r\n```\r\n frameworks: ['jasmine', '@angular/cli'],\r\n preprocessors: {\r\n './src/test.ts': ['@angular/cli']\r\n },\r\n reporters: ['progress'],\r\n```\r\n`package.json` has these features (probably irrelevant since older versions of these packages were working fine too before the cli upgrade):\r\n```\r\n \"jasmine-core\": \"~2.6.2\",\r\n \"karma\": \"~1.7.0\",\r\n \"karma-jasmine\": \"~1.1.0\",\r\n \"karma-cli\": \"~1.0.1\",\r\n```\r\n\r\n### The log given by the failure.\r\n\r\nWhen using later versions of `@angular/cli` the `ng test` output looks something like this:\r\n```\r\n _getByKey@http://localhost:9876/_karma_webpack_/vendor.bundle.js:34382:41\r\n get@http://localhost:9876/_karma_webpack_/vendor.bundle.js:34251:30\r\n get@http://localhost:9876/_karma_webpack_/vendor.bundle.js:35219:55\r\n resolveDep@http://localhost:9876/_karma_webpack_/vendor.bundle.js:42680:48\r\n createClass@http://localhost:9876/_karma_webpack_/vendor.bundle.js:42536:45\r\n createDirectiveInstance@http://localhost:9876/_karma_webpack_/vendor.bundle.js:42364:48\r\n createViewNodes@http://localhost:9876/_karma_webpack_/vendor.bundle.js:43727:72\r\n createRootView@http://localhost:9876/_karma_webpack_/vendor.bundle.js:43632:20\r\n callWithDebugContext@http://localhost:9876/_karma_webpack_/vendor.bundle.js:44847:47\r\n debugCreateRootView@http://localhost:9876/_karma_webpack_/vendor.bundle.js:44307:32\r\n create@http://localhost:9876/_karma_webpack_/vendor.bundle.js:41553:60\r\n initComponent@http://localhost:9876/_karma_webpack_/vendor.bundle.js:46642:55\r\n invoke@http://localhost:9876/_karma_webpack_/polyfills.bundle.js:2732:31\r\n onInvoke@http://localhost:9876/_karma_webpack_/vendor.bundle.js:106204:45\r\n invoke@http://localhost:9876/_karma_webpack_/polyfills.bundle.js:2731:40\r\n onInvoke@http://localhost:9876/_karma_webpack_/vendor.bundle.js:35790:43\r\n invoke@http://localhost:9876/_karma_webpack_/polyfills.bundle.js:2731:40\r\n run@http://localhost:9876/_karma_webpack_/polyfills.bundle.js:2482:49\r\n run@http://localhost:9876/_karma_webpack_/vendor.bundle.js:35658:65\r\n createComponent@http://localhost:9876/_karma_webpack_/vendor.bundle.js:46645:61\r\n createComponent@http://localhost:9876/_karma_webpack_/vendor.bundle.js:46449:44\r\n```\r\n\r\n### Desired functionality.\r\nWhen using `@angular/cli 1.0.6` (and 1.0.1 and earlier) the output of `ng test` would look something like this:\r\n```\r\n _throwOrNull@webpack:///~/@angular/core/@angular/core.es5.js:2770:0 \u003c- src/test.ts:4787:45\r\n _getByKeyDefault@webpack:///~/@angular/core/@angular/core.es5.js:2809:0 \u003c- src/test.ts:4826:37\r\n _getByKey@webpack:///~/@angular/core/@angular/core.es5.js:2741:0 \u003c- src/test.ts:4758:41\r\n get@webpack:///~/@angular/core/@angular/core.es5.js:2610:0 \u003c- src/test.ts:4627:30\r\n get@webpack:///~/@angular/core/@angular/core.es5.js:3578:0 \u003c- src/test.ts:5595:55\r\n resolveDep@webpack:///~/@angular/core/@angular/core.es5.js:11039:0 \u003c- src/test.ts:13056:48\r\n createClass@webpack:///~/@angular/core/@angular/core.es5.js:10895:0 \u003c- src/test.ts:12912:45\r\n createDirectiveInstance@webpack:///~/@angular/core/@angular/core.es5.js:10723:21 \u003c- src/test.ts:12740:48\r\n createViewNodes@webpack:///~/@angular/core/@angular/core.es5.js:12086:33 \u003c- src/test.ts:14103:72\r\n createRootView@webpack:///~/@angular/core/@angular/core.es5.js:11991:0 \u003c- src/test.ts:14008:20\r\n callWithDebugContext@webpack:///~/@angular/core/@angular/core.es5.js:13206:25 \u003c- src/test.ts:15223:47\r\n debugCreateRootView@webpack:///~/@angular/core/@angular/core.es5.js:12666:0 \u003c- src/test.ts:14683:32\r\n create@webpack:///~/@angular/core/@angular/core.es5.js:9912:25 \u003c- src/test.ts:11929:60\r\n initComponent@webpack:///~/@angular/core/@angular/core/testing.es5.js:803:0 \u003c- src/test.ts:17338:55\r\n invoke@webpack:///~/zone.js/dist/zone.js:391:0 \u003c- src/polyfills.ts:1546:31\r\n onInvoke@webpack:///~/zone.js/dist/proxy.js:79:0 \u003c- src/test.ts:96647:45\r\n invoke@webpack:///~/zone.js/dist/zone.js:390:0 \u003c- src/polyfills.ts:1545:40\r\n onInvoke@webpack:///~/@angular/core/@angular/core.es5.js:4149:0 \u003c- src/test.ts:6166:43\r\n invoke@webpack:///~/zone.js/dist/zone.js:390:0 \u003c- src/polyfills.ts:1545:40\r\n```\r\n\r\n### Mention any other details that might be useful.\r\n\r\nPlease let me know if I should clarify anything. I confirmed the error is caused by angular-cli: when I rolled back to version 1.0.6 the `ng test` unit test errors were logged as they were logged previously (as desired).\r\n","author":{"url":"https://github.com/whyboris","@type":"Person","name":"whyboris"},"datePublished":"2017-06-05T21:48:26Z","url":"https://github.com/angular/angular-cli/issues/6583"}
| 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:ad4d8e8c-1625-8f0a-e899-3b13ccfa0b5e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A25A:2C4BED:2FD1C3A:3CC06FF:6B01C5D2 |
| html-safe-nonce | afe20b6533ed678424bc87483fa4216c0c3ef58cc22b4770e62eb2b19d3a23ad |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMjVBOjJDNEJFRDoyRkQxQzNBOjNDQzA2RkY6NkIwMUM1RDIiLCJ2aXNpdG9yX2lkIjoiNzk1MDYzMTMwNDkyMzU2MDUwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 1a588f7d6fe7d4d53d3c317d1d9359300963a6f1b29ce58a5d6f396e85677395 |
| hovercard-subject-tag | issue:233720684 |
| 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/6583/issue_layout |
| twitter:image | https://opengraph.githubassets.com/08f64bbc53ee182475f26b815fc3372fa9f54786f87a11d4b5fca8f95fd2c32e/angular/angular-cli/issues/6583 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/08f64bbc53ee182475f26b815fc3372fa9f54786f87a11d4b5fca8f95fd2c32e/angular/angular-cli/issues/6583 |
| og:image:alt | Bug Report or Feature Request (mark with an x) - [x] bug report -> please search issues before submitting - [ ] feature request Versions. Summary: @angular/cli: 1.1.0 (replicated on 1.2.0-beta.0) n... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | whyboris |
| 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