René's URL Explorer Experiment


Title: Many NG0100 errors in Karma unit tests after updating to Angular 21 · Issue #32047 · angular/angular-cli · GitHub

Open Graph Title: Many NG0100 errors in Karma unit tests after updating to Angular 21 · Issue #32047 · angular/angular-cli

X Title: Many NG0100 errors in Karma unit tests after updating to Angular 21 · Issue #32047 · angular/angular-cli

Description: Command test Is this a regression? Yes, this behavior used to work in the previous version The previous version in which this bug was not present was 20.3.12 Description When updating my app to Angular 21, all is fine, except my unit tes...

Open Graph Description: Command test Is this a regression? Yes, this behavior used to work in the previous version The previous version in which this bug was not present was 20.3.12 Description When updating my app to Ang...

X Description: Command test Is this a regression? Yes, this behavior used to work in the previous version The previous version in which this bug was not present was 20.3.12 Description When updating my app to Ang...

Opengraph URL: https://github.com/angular/angular-cli/issues/32047

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Many NG0100 errors in Karma unit tests after updating to Angular 21","articleBody":"### Command\n\ntest\n\n### Is this a regression?\n\n- [x] Yes, this behavior used to work in the previous version\n\n### The previous version in which this bug was not present was\n\n20.3.12\n\n### Description\n\nWhen updating my app to Angular 21, all is fine, _except_ my unit tests. There are now many, many occurrences of the `NG0100: ExpressionChangedAfterItHasBeenCheckedError`, which were not present before the update.\n\nMy app still heavily relies on zone.js for change detection. I also still use the older `@angular-devkit/build-angular:karma` builder. I am working on upgrading both, but that process is gradual and will still take significant effort.\n\nI discovered [this Reddit post](https://www.reddit.com/r/angular/comments/1p8suok/upgrading_from_angular_20_21_app_works_but_tests/) where someone describes the exact same issue (in way more detail). This also includes a workaround: globally \"patch\" `TestBed.configureTestingModule` to always `provideZoneChangeDetection()`. As I also indicated in my comment over there, this does work, but feels too hacky and I cannot imagine this being the \"official\" recommended solution. Is there anything else I can do?\n\n### Minimal Reproduction\n\nIn principle:\n1. Have a zone.js-based Angular project, not using OnPush change detection (at least not everywhere)\n2. Run `ng test`\n3. Observe NG0100 errors\n\nI am unfortunately unable to submit (parts of) my actual source code. Will try to see if I can make a minimal reproduction later.\n\n### Exception or Error\n\n```text\nNG0100: ExpressionChangedAfterItHasBeenCheckedError\n```\n\n### Your Environment\n\n```text\n_                      _                 ____ _     ___\n    / \\   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|\n   / △ \\ | '_ \\ / _` | | | | |/ _` | '__|   | |   | |    | |\n  / ___ \\| | | | (_| | |_| | | (_| | |      | |___| |___ | |\n /_/   \\_\\_| |_|\\__, |\\__,_|_|\\__,_|_|       \\____|_____|___|\n                |___/\n    \n\nAngular CLI       : 21.0.1\nAngular           : 21.0.2\nNode.js           : 24.11.0\nPackage Manager   : yarn 4.12.0\nOperating System  : darwin arm64\n\n┌────────────────────────────────────┬───────────────────┬───────────────────┐\n│ Package                            │ Installed Version │ Requested Version │\n├────────────────────────────────────┼───────────────────┼───────────────────┤\n│ @angular-devkit/architect          │ 0.2100.1          │ 0.2100.1          │\n│ @angular-devkit/build-angular      │ 21.0.1            │ 21.0.1            │\n│ @angular-devkit/core               │ 21.0.1            │ 21.0.1            │\n│ @angular-devkit/schematics         │ 21.0.1            │ 21.0.1            │\n│ @angular/animations                │ 21.0.2            │ 21.0.2            │\n│ @angular/cdk                       │ 21.0.1            │ 21.0.1            │\n│ @angular/cli                       │ 21.0.1            │ 21.0.1            │\n│ @angular/common                    │ 21.0.2            │ 21.0.2            │\n│ @angular/compiler                  │ 21.0.2            │ 21.0.2            │\n│ @angular/compiler-cli              │ 21.0.2            │ 21.0.2            │\n│ @angular/core                      │ 21.0.2            │ 21.0.2            │\n│ @angular/forms                     │ 21.0.2            │ 21.0.2            │\n│ @angular/language-service          │ 21.0.2            │ 21.0.2            │\n│ @angular/material                  │ 21.0.1            │ 21.0.1            │\n│ @angular/material-date-fns-adapter │ 21.0.1            │ 21.0.1            │\n│ @angular/platform-browser          │ 21.0.2            │ 21.0.2            │\n│ @angular/platform-browser-dynamic  │ 21.0.2            │ 21.0.2            │\n│ @angular/router                    │ 21.0.2            │ 21.0.2            │\n│ rxjs                               │ 7.8.2             │ 7.8.2             │\n│ typescript                         │ 5.9.3             │ 5.9.3             │\n│ zone.js                            │ 0.15.1            │ 0.15.1            │\n└────────────────────────────────────┴───────────────────┴───────────────────┘\n```\n\n### Anything else relevant?\n\n_No response_","author":{"url":"https://github.com/jimivdw","@type":"Person","name":"jimivdw"},"datePublished":"2025-12-05T12:44:34Z","url":"https://github.com/angular/angular-cli/issues/32047"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:72ddd4db-cfe5-f995-ac5c-4fcc7c784a64
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE638:1148D3:3407530:426A7A4:6B01E3F7
html-safe-nonce16679e7d941e7ed6cdb4f13af90bc411d6e053f1ebf0dbf105fb7cc117963ea5
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNjM4OjExNDhEMzozNDA3NTMwOjQyNkE3QTQ6NkIwMUUzRjciLCJ2aXNpdG9yX2lkIjoiMzI4MjgzNjcxOTUyNjg2Mzg2MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacfea63c07e27af9783d564797e65135275c01ce17519396d9968091ce62a73718
hovercard-subject-tagissue:3699619301
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular-cli/32047/issue_layout
twitter:imagehttps://opengraph.githubassets.com/b4355d5782d68c6e386f5e635fcee32fba738e8f6a8b7c2c76dbdc6e731d5404/angular/angular-cli/issues/32047
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/b4355d5782d68c6e386f5e635fcee32fba738e8f6a8b7c2c76dbdc6e731d5404/angular/angular-cli/issues/32047
og:image:altCommand test Is this a regression? Yes, this behavior used to work in the previous version The previous version in which this bug was not present was 20.3.12 Description When updating my app to Ang...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejimivdw
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
go-importgithub.com/angular/angular-cli git https://github.com/angular/angular-cli.git
octolytics-dimension-user_id139426
octolytics-dimension-user_loginangular
octolytics-dimension-repository_id36891867
octolytics-dimension-repository_nwoangular/angular-cli
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id36891867
octolytics-dimension-repository_network_root_nwoangular/angular-cli
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular-cli/issues/32047#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular-cli%2Fissues%2F32047
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular-cli%2Fissues%2F32047
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=angular%2Fangular-cli
Reloadhttps://github.com/angular/angular-cli/issues/32047
Reloadhttps://github.com/angular/angular-cli/issues/32047
Reloadhttps://github.com/angular/angular-cli/issues/32047
angularhttps://github.com/angular
angular-clihttps://github.com/angular/angular-cli
Codehttps://github.com/angular/angular-cli
Issues198 (198)https://github.com/angular/angular-cli/issues
Pull requests23 (23)https://github.com/angular/angular-cli/pulls
Actionshttps://github.com/angular/angular-cli/actions
Security and quality8 (8)https://github.com/angular/angular-cli/security
Insightshttps://github.com/angular/angular-cli/insights
https://github.com/angular/angular-cli
New issuehttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/32047
New issuehttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/32047
Bughttps://github.com/angular/angular-cli/issues?q=type:"Bug"
#32049https://github.com/angular/angular-cli/pull/32049
Many NG0100 errors in Karma unit tests after updating to Angular 21https://github.com/angular/angular-cli/issues/32047#top
#32049https://github.com/angular/angular-cli/pull/32049
area: @angular-devkit/build-angularhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22area%3A%20%40angular-devkit%2Fbuild-angular%22
devkit/build-angular:karmahttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22devkit%2Fbuild-angular%3Akarma%22
freq1: lowOnly reported by a handful of users who observe it rarelyhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22freq1%3A%20low%22
severity5: regressionhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22severity5%3A%20regression%22
type: bug/fixhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%2Ffix%22
https://github.com/jimivdw
jimivdwhttps://github.com/jimivdw
on Dec 5, 2025https://github.com/angular/angular-cli/issues/32047#issue-3699619301
this Reddit posthttps://www.reddit.com/r/angular/comments/1p8suok/upgrading_from_angular_20_21_app_works_but_tests/
https://github.com/json-derulo
json-derulohttps://github.com/json-derulo
on Dec 5, 2025https://github.com/angular/angular-cli/issues/32047#issuecomment-3617656995
Stack Overflowhttps://stackoverflow.com/q/79837996/5470544
https://github.com/alan-agius4
alan-agius4https://github.com/alan-agius4
on Dec 5, 2025https://github.com/angular/angular-cli/issues/32047#issuecomment-3617657007
@jimivdwhttps://github.com/jimivdw
alan-agius4https://github.com/alan-agius4
angular/angular-clihttps://github.com/angular/angular-cli
on Dec 5, 2025https://github.com/angular/angular-cli/issues/32047#event-21388583618
ngbothttps://github.com/apps/ngbot
needsTriagehttps://github.com/angular/angular-cli/milestone/11
on Dec 5, 2025https://github.com/angular/angular-cli/issues/32047#event-21388583636
https://github.com/jimivdw
jimivdwhttps://github.com/jimivdw
on Dec 5, 2025https://github.com/angular/angular-cli/issues/32047#issuecomment-3617657017
@alan-agius4https://github.com/alan-agius4
https://github.com/alan-agius4
alan-agius4https://github.com/alan-agius4
on Dec 5, 2025https://github.com/angular/angular-cli/issues/32047#issuecomment-3617657036
ngbothttps://github.com/apps/ngbot
needsTriagehttps://github.com/angular/angular-cli/milestone/11
on Dec 5, 2025https://github.com/angular/angular-cli/issues/32047#event-21388583710
alan-agius4https://github.com/alan-agius4
angular/angularhttps://github.com/angular/angular
on Dec 5, 2025https://github.com/angular/angular-cli/issues/32047#event-21388584060
https://github.com/alan-agius4
alan-agius4https://github.com/alan-agius4
on Dec 5, 2025https://github.com/angular/angular-cli/issues/32047#issuecomment-3617807311
alan-agius4https://github.com/alan-agius4
devkit/build-angular:karmahttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22devkit%2Fbuild-angular%3Akarma%22
type: bug/fixhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%2Ffix%22
freq1: lowOnly reported by a handful of users who observe it rarelyhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22freq1%3A%20low%22
severity5: regressionhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22severity5%3A%20regression%22
area: @angular-devkit/build-angularhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22area%3A%20%40angular-devkit%2Fbuild-angular%22
on Dec 5, 2025https://github.com/angular/angular-cli/issues/32047#event-21389453759
alan-agius4https://github.com/alan-agius4
Bughttps://github.com/angular/angular-cli/issues?q=type:"Bug"
on Dec 5, 2025https://github.com/angular/angular-cli/issues/32047#event-21389459090
alan-agius4https://github.com/alan-agius4
on Dec 5, 2025https://github.com/angular/angular-cli/issues/32047#event-21389476554
fix(@angular-devkit/build-angular): conditionally provide Zone.js cha…https://github.com/alan-agius4/angular-cli/commit/1ec868b02c0ae125285febedc440476c40865183
https://docs.github.com/articles/closing-issues-via-commit-messages
1ec868bhttps://github.com/alan-agius4/angular-cli/commit/1ec868b02c0ae125285febedc440476c40865183
fix(@angular-devkit/build-angular): conditionally provide Zone.js cha…https://github.com/alan-agius4/angular-cli/commit/5936147abc1fed0ba5f4fdc85afc4fa91d3625eb
https://docs.github.com/articles/closing-issues-via-commit-messages
5936147https://github.com/alan-agius4/angular-cli/commit/5936147abc1fed0ba5f4fdc85afc4fa91d3625eb
alan-agius4https://github.com/alan-agius4
completedhttps://github.com/angular/angular-cli/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#32049https://github.com/angular/angular-cli/pull/32049
on Dec 5, 2025https://github.com/angular/angular-cli/issues/32047#event-21389753066
alan-agius4https://github.com/alan-agius4
on Dec 5, 2025https://github.com/angular/angular-cli/issues/32047#event-21389753754
fix(@angular-devkit/build-angular): conditionally provide Zone.js cha…https://github.com/angular/angular-cli/commit/5d85f416f43b6bcd07b28ab920cb40c61a83ebdd
https://docs.github.com/articles/closing-issues-via-commit-messages
5d85f41https://github.com/angular/angular-cli/commit/5d85f416f43b6bcd07b28ab920cb40c61a83ebdd
angular-robothttps://github.com/angular-robot
on Dec 5, 2025https://github.com/angular/angular-cli/issues/32047#event-21390167548
fix(@angular-devkit/build-angular): conditionally provide Zone.js cha…https://github.com/angular-robot/angular-cli/commit/985aa18d0b6cf728c498c0873793e131a4c416c1
https://docs.github.com/articles/closing-issues-via-commit-messages
985aa18https://github.com/angular-robot/angular-cli/commit/985aa18d0b6cf728c498c0873793e131a4c416c1
https://github.com/playanth95978
playanth95978https://github.com/playanth95978
on Dec 17, 2025https://github.com/angular/angular-cli/issues/32047#issuecomment-3663394365
https://github.com/Viktor-Ivliev
Viktor-Ivlievhttps://github.com/Viktor-Ivliev
on Dec 18, 2025https://github.com/angular/angular-cli/issues/32047#issuecomment-3671097977
@alan-agius4https://github.com/alan-agius4
https://github.com/apps/angular-automatic-lock-bot
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Jan 18, 2026https://github.com/angular/angular-cli/issues/32047#issuecomment-3764516365
automatic conversation locking policyhttps://github.com/angular/angular/blob/f0fbced1c55bc8b8ed9df01cea99df42f3e7eae3/contributing-docs/auto-issue-locking.md
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Jan 18, 2026https://github.com/angular/angular-cli/issues/32047#event-22118710909
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular-cli/issues/32047
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/32047
area: @angular-devkit/build-angularhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22area%3A%20%40angular-devkit%2Fbuild-angular%22
devkit/build-angular:karmahttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22devkit%2Fbuild-angular%3Akarma%22
freq1: lowOnly reported by a handful of users who observe it rarelyhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22freq1%3A%20low%22
severity5: regressionhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22severity5%3A%20regression%22
type: bug/fixhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%2Ffix%22
Bughttps://github.com/angular/angular-cli/issues?q=type:"Bug"
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.