Title: TestBed.overrideComponent incorrectly overrides changeDetection to eager when not explicitly provided · Issue #70323 · angular/angular · GitHub
Open Graph Title: TestBed.overrideComponent incorrectly overrides changeDetection to eager when not explicitly provided · Issue #70323 · angular/angular
X Title: TestBed.overrideComponent incorrectly overrides changeDetection to eager when not explicitly provided · Issue #70323 · angular/angular
Description: Which @angular/* package(s) are the source of the bug? core Is this a regression? No Description when changeDetection is not explicitly provided Testbed.overrideComponent overrides it to Eager Please provide a link to a minimal reproduct...
Open Graph Description: Which @angular/* package(s) are the source of the bug? core Is this a regression? No Description when changeDetection is not explicitly provided Testbed.overrideComponent overrides it to Eager Plea...
X Description: Which @angular/* package(s) are the source of the bug? core Is this a regression? No Description when changeDetection is not explicitly provided Testbed.overrideComponent overrides it to Eager Plea...
Opengraph URL: https://github.com/angular/angular/issues/70323
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"TestBed.overrideComponent incorrectly overrides changeDetection to eager when not explicitly provided","articleBody":"### Which @angular/* package(s) are the source of the bug?\n\ncore\n\n### Is this a regression?\n\nNo\n\n### Description\n\nwhen changeDetection is not explicitly provided Testbed.overrideComponent overrides it to Eager\n\n\u003cimg width=\"883\" height=\"963\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/bf9f0747-0d05-416f-8cbc-060b0ae59739\" />\n\n### Please provide a link to a minimal reproduction of the bug\n\n_No response_\n\n### Please provide the exception or error you saw\n\n```true\n\n```\n\n### Please provide the environment you discovered this bug in (run `ng version`)\n\n```true\nAngular CLI : 22.1.4\nAngular : 22.1.3\nNode.js : 24.19.0\n\n┌───────────────────────────────────┬───────────────────┬───────────────────┐\n│ Package │ Installed Version │ Requested Version │\n├───────────────────────────────────┼───────────────────┼───────────────────┤\n│ @angular/animations │ 22.1.3 │ ~22.1.0 │\n│ @angular/build │ 22.1.4 │ ^22.1.4 │\n│ @angular/cdk │ 22.1.3 │ ~22.1.0 │\n│ @angular/cli │ 22.1.4 │ ~22.1.4 │\n│ @angular/common │ 22.1.3 │ ~22.1.0 │\n│ @angular/compiler │ 22.1.3 │ ~22.1.0 │\n│ @angular/compiler-cli │ 22.1.2 │ ^22.1.2 │\n│ @angular/core │ 22.1.3 │ ~22.1.0 │\n│ @angular/forms │ 22.1.3 │ ~22.1.0 │\n│ @angular/material │ 22.1.3 │ ~22.1.0 │\n│ @angular/platform-browser │ 22.1.3 │ ~22.1.0 │\n│ @angular/platform-browser-dynamic │ 22.1.3 │ ~22.1.0 │\n│ @angular/router │ 22.1.3 │ ~22.1.0 │\n│ @angular/service-worker │ 22.1.3 │ ~22.1.0 │\n│ rxjs │ 7.8.2 │ ~7.8.0 │\n│ typescript │ 6.0.3 │ ~6.0.3 │\n│ vitest │ 4.1.11 │ ^4.1.11 │\n```\n\n### Anything else?\n\n_No response_","author":{"url":"https://github.com/xripcsu","@type":"Person","name":"xripcsu"},"datePublished":"2026-08-20T19:06:20Z","url":"https://github.com/angular/angular/issues/70323"}
| 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:d86a1077-a9f1-0cc8-843f-8111931ab823 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AC7A:6DC60:D2704A:1080B52:6B0137C1 |
| html-safe-nonce | 61c8db4f0133ea4779aee418718be871c61605ab9c0a86a79ddb3b9626a1b619 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQzdBOjZEQzYwOkQyNzA0QToxMDgwQjUyOjZCMDEzN0MxIiwidmlzaXRvcl9pZCI6IjIyMzAzODg0MzcxNDIyODgzMjEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a250e7ac11e321483a204d3dada08841a51207307b03f85e95924d7f8c21d993 |
| hovercard-subject-tag | issue:5206950297 |
| 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/70323/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7385c18a891dd72396b523c0ad8f187bcf86d8aaf24f3ae5ebd686b6515b621c/angular/angular/issues/70323 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7385c18a891dd72396b523c0ad8f187bcf86d8aaf24f3ae5ebd686b6515b621c/angular/angular/issues/70323 |
| og:image:alt | Which @angular/* package(s) are the source of the bug? core Is this a regression? No Description when changeDetection is not explicitly provided Testbed.overrideComponent overrides it to Eager Plea... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | xripcsu |
| 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