Title: Unit testing ngUpgrade applications · Issue #5462 · angular/angular · GitHub
Open Graph Title: Unit testing ngUpgrade applications · Issue #5462 · angular/angular
X Title: Unit testing ngUpgrade applications · Issue #5462 · angular/angular
Description: How does one write unit tests for hybrid applications that have a mixture of Angular 1 and Angular 2 components? I've been able to run a test suite that has some tests for ng1 and some for ng2, but I've achieved this by always mocking ou...
Open Graph Description: How does one write unit tests for hybrid applications that have a mixture of Angular 1 and Angular 2 components? I've been able to run a test suite that has some tests for ng1 and some for ng2, but...
X Description: How does one write unit tests for hybrid applications that have a mixture of Angular 1 and Angular 2 components? I've been able to run a test suite that has some tests for ng1 and some for ng2,...
Opengraph URL: https://github.com/angular/angular/issues/5462
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Unit testing ngUpgrade applications","articleBody":"How does one write unit tests for hybrid applications that have a mixture of Angular 1 and Angular 2 components?\n\nI've been able to run a test suite that has some tests for ng1 and some for ng2, but I've achieved this by always mocking out cross-framework dependencies and using `beforeEachProviders`/`injectAsync` for Angular 2 components, and `angular.mock.module`/`angular.mock.inject` for Angular 1 components. But I don't see a way to test a hybrid with either of these two approaches.\n\nFor a minimal example app demonstrating the issue, see https://github.com/teropa/ng1-2-hybrid-unit-tests\n","author":{"url":"https://github.com/teropa","@type":"Person","name":"teropa"},"datePublished":"2015-11-24T18:06:56Z","url":"https://github.com/angular/angular/issues/5462"}
| 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:cab7ff76-9a5d-fa77-6761-d8d3d1ca6d83 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A674:1F5C:7DE740:A773FC:6B02137E |
| html-safe-nonce | 41ae73a866075bd9a4ef20643905810f49090c9c7674ab4a6783e19512c44a24 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNjc0OjFGNUM6N0RFNzQwOkE3NzNGQzo2QjAyMTM3RSIsInZpc2l0b3JfaWQiOiI1MDc5MDgwNjMwNzA5NTIzMzI2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | ec33209aa1f892234f22a1053014312d4ac2a45de3ffad3c62852889dc61e7aa |
| hovercard-subject-tag | issue:118670262 |
| 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/5462/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f26bfe8d7b692f11cbe45d8ee1e07d595e879d0c0a091dfda8688bb1b96f37f1/angular/angular/issues/5462 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f26bfe8d7b692f11cbe45d8ee1e07d595e879d0c0a091dfda8688bb1b96f37f1/angular/angular/issues/5462 |
| og:image:alt | How does one write unit tests for hybrid applications that have a mixture of Angular 1 and Angular 2 components? I've been able to run a test suite that has some tests for ng1 and some for ng2, but... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | teropa |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular git https://github.com/angular/angular.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 24195339 |
| octolytics-dimension-repository_nwo | angular/angular |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 24195339 |
| octolytics-dimension-repository_network_root_nwo | angular/angular |
| 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 | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width