Title: TestBed.overrideComponent doesn't update standalone components · Issue #48432 · angular/angular · GitHub
Open Graph Title: TestBed.overrideComponent doesn't update standalone components · Issue #48432 · angular/angular
X Title: TestBed.overrideComponent doesn't update standalone components · Issue #48432 · angular/angular
Description: Which @angular/* package(s) are the source of the bug? core Is this a regression? No Description This removes imports - expected. TestBed.overrideComponent(StandaloneComponent, { set: { imports: [], }, }); This doesn't change imports - u...
Open Graph Description: Which @angular/* package(s) are the source of the bug? core Is this a regression? No Description This removes imports - expected. TestBed.overrideComponent(StandaloneComponent, { set: { imports: []...
X Description: Which @angular/* package(s) are the source of the bug? core Is this a regression? No Description This removes imports - expected. TestBed.overrideComponent(StandaloneComponent, { set: { imports: []...
Opengraph URL: https://github.com/angular/angular/issues/48432
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"TestBed.overrideComponent doesn't update standalone components","articleBody":"### Which @angular/* package(s) are the source of the bug?\r\n\r\ncore\r\n\r\n### Is this a regression?\r\n\r\nNo\r\n\r\n### Description\r\n\r\nThis removes imports - expected.\r\n```ts\r\nTestBed.overrideComponent(StandaloneComponent, {\r\n set: {\r\n imports: [],\r\n },\r\n});\r\n```\r\n\r\nThis doesn't change imports - unexpected.\r\n```ts\r\nTestBed.overrideComponent(StandaloneComponent, {\r\n set: {\r\n imports: [FakeTestingModule],\r\n },\r\n});\r\n```\r\n\r\nThere is stackblitz example - simply copy/paste the `test.spec.ts` to an angular v15 (v14 has his issue too) project.\r\n\r\n### Please provide a link to a minimal reproduction of the bug\r\n\r\nhttps://github.com/satanTime/ng-mocks/blob/issues/4486/tests/issue-4486/angular.spec.ts\r\n\r\n### Please provide the exception or error you saw\r\n\r\n_No response_\r\n\r\n### Please provide the environment you discovered this bug in (run `ng version`)\r\n\r\n```true\r\nAngular CLI: 15.0.3\r\nNode: 16.18.1\r\nPackage Manager: npm 8.19.3\r\nOS: darwin x64\r\n\r\nAngular: 15.0.3\r\n... animations, cli, common, compiler, compiler-cli, core, forms\r\n... platform-browser, platform-browser-dynamic, router\r\n\r\nPackage Version\r\n---------------------------------------------------------\r\n@angular-devkit/architect 0.1500.3\r\n@angular-devkit/build-angular 15.0.3\r\n@angular-devkit/core 15.0.3\r\n@angular-devkit/schematics 15.0.3\r\n@schematics/angular 15.0.3\r\nrxjs 7.6.0\r\ntypescript 4.8.4\r\nwebpack 5.75.0\r\n```\r\n\r\n\r\n### Anything else?\r\n\r\n_No response_","author":{"url":"https://github.com/satanTime","@type":"Person","name":"satanTime"},"datePublished":"2022-12-10T10:52:42Z","url":"https://github.com/angular/angular/issues/48432"}
| 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:d57fe819-2a15-be27-f0f8-2f51f15a6d41 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DAFA:20AA01:38F7B74:485AEA7:6B01E12B |
| html-safe-nonce | 3344b2a1f6109998040069680bbbe6d75e311959cceac2aa349b5fa8ce2df2d2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQUZBOjIwQUEwMTozOEY3Qjc0OjQ4NUFFQTc6NkIwMUUxMkIiLCJ2aXNpdG9yX2lkIjoiODI0NzEyNTI4NTA3NDQ5MzczOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 751374e5393772695abf28218e1b9a802273b730b178471cead3b004e4789dcb |
| hovercard-subject-tag | issue:1488374578 |
| 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/48432/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d950374631918aef731e40b8ff7851da5c5528fb74b433adbf75ac076bc97579/angular/angular/issues/48432 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d950374631918aef731e40b8ff7851da5c5528fb74b433adbf75ac076bc97579/angular/angular/issues/48432 |
| og:image:alt | Which @angular/* package(s) are the source of the bug? core Is this a regression? No Description This removes imports - expected. TestBed.overrideComponent(StandaloneComponent, { set: { imports: []... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | satanTime |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| 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 | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width