René's URL Explorer Experiment


Title: Unit test fails with zone application and vitest · Issue #32555 · angular/angular-cli · GitHub

Open Graph Title: Unit test fails with zone application and vitest · Issue #32555 · angular/angular-cli

X Title: Unit test fails with zone application and vitest · Issue #32555 · 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 No response Description Hello Angular Team, ng version: 21.1.5 Unit tests fail in a ver...

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 No response Description Hello Angular Team, ng ...

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 No response Description Hello Angular Team, ng ...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Unit test fails with zone application and vitest","articleBody":"### Command\n\ntest\n\n### Is this a regression?\n\n- [ ] Yes, this behavior used to work in the previous version\n\n### The previous version in which this bug was not present was\n\n_No response_\n\n### Description\n\nHello Angular Team,\n\nng version: 21.1.5\n\nUnit tests fail in a very weird way for projects that use the zone\nSome fields of the components are simply not assigned, which causes a failure when the view is rendered\nStrangely, this happens when multiples components consumes the same import ( this typically happens with exported constants )\n\nYou can find a simple repro below. \n\nhttps://stackblitz.com/edit/angular-v21-starter-w7aywxrw?file=README.md\n\nIf I remove the polyfill, it passes ( I've noticed that the generated javascript is different )\n\nPlease not that we cannot migrate all our apps/libs to zoneless in one shot  ( we are in an enterprise setup with a lot of libs ),\nso it's really an issue that prevent us for migrating to ng21\n\nThanks for considering this issue,\n\nFC\n\n### Minimal Reproduction\n\nhttps://stackblitz.com/edit/angular-v21-starter-w7aywxrw?file=README.md\n\n\n### Exception or Error\n\n```text\nSome fields of the component is undefined, which causes failure when the template is rendered during the test.\n\n\n\nTypeError: Cannot read properties of undefined (reading 'A')\n```\n\n### Your Environment\n\n```text\n_                      _                 ____ _     ___\n    / \\   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|\n   / △ \\ | '_ \\ / _` | | | | |/ _` | '__|   | |   | |    | |\n  / ___ \\| | | | (_| | |_| | | (_| | |      | |___| |___ | |\n /_/   \\_\\_| |_|\\__, |\\__,_|_|\\__,_|_|       \\____|_____|___|\n                |___/\n    \n\nAngular CLI       : 21.1.5\nAngular           : 21.1.5\nNode.js           : 20.19.1\nPackage Manager   : npm 10.8.2\nOperating System  : linux x64\n\n┌───────────────────────────┬───────────────────┬───────────────────┐\n│ Package                   │ Installed Version │ Requested Version │\n├───────────────────────────┼───────────────────┼───────────────────┤\n│ @angular/build            │ 21.1.5            │ ^21.1.5           │\n│ @angular/cli              │ 21.1.5            │ ^21.1.5           │\n│ @angular/common           │ 21.1.5            │ ^21.1.5           │\n│ @angular/compiler         │ 21.1.5            │ ^21.1.5           │\n│ @angular/compiler-cli     │ 21.1.5            │ ^21.1.5           │\n│ @angular/core             │ 21.1.5            │ ^21.1.5           │\n│ @angular/forms            │ 21.1.5            │ ^21.1.5           │\n│ @angular/platform-browser │ 21.1.5            │ ^21.1.5           │\n│ @angular/router           │ 21.1.5            │ ^21.1.5           │\n│ rxjs                      │ 7.8.2             │ ~7.8.0            │\n│ typescript                │ 5.9.3             │ ~5.9.2            │\n│ vitest                    │ 4.0.18            │ ^4.0.8            │\n│ zone.js                   │ 0.15.1            │ ~0.15.0           │\n└───────────────────────────┴───────────────────┴──────────────────\n```\n\n### Anything else relevant?\n\nRemoving the polyfill fixes it.\n\nTweaking the tsconfig.spec.json to use node module system fixes it ( see in the stackblitz )","author":{"url":"https://github.com/chabb","@type":"Person","name":"chabb"},"datePublished":"2026-02-24T09:44:24Z","url":"https://github.com/angular/angular-cli/issues/32555"}

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:c6bbac96-f6da-dfd2-8378-27b3f7f257b3
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id86A4:215B92:30FC33F:41448DC:6B01E970
html-safe-nonceeecddd6593b654f9f3595b7cf33850d9dfd6d654e47cbe036ea91bfe873ca10b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NkE0OjIxNUI5MjozMEZDMzNGOjQxNDQ4REM6NkIwMUU5NzAiLCJ2aXNpdG9yX2lkIjoiODYyMTk1NTI4ODY3ODkxODUxMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac7e31e922b9f514fad0a6dc041c980204b5af0dba009e231ba26157a4467490f7
hovercard-subject-tagissue:3982599295
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/32555/issue_layout
twitter:imagehttps://opengraph.githubassets.com/2b5a4476a514c91881a11a26f4bed95597204c8e41a12d72e1b890aec4250955/angular/angular-cli/issues/32555
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/2b5a4476a514c91881a11a26f4bed95597204c8e41a12d72e1b890aec4250955/angular/angular-cli/issues/32555
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 No response Description Hello Angular Team, ng ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamechabb
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
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
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular-cli/issues/32555#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular-cli%2Fissues%2F32555
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%2F32555
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/32555
Reloadhttps://github.com/angular/angular-cli/issues/32555
Reloadhttps://github.com/angular/angular-cli/issues/32555
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/32555
New issuehttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/32555
Bughttps://github.com/angular/angular-cli/issues?q=type:"Bug"
Unit test fails with zone application and vitesthttps://github.com/angular/angular-cli/issues/32555#top
angular/build:unit-testhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22angular%2Fbuild%3Aunit-test%22
area: @angular/buildhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22area%3A%20%40angular%2Fbuild%22
needs: investigationRequires some digging to determine if action is neededhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22needs%3A%20investigation%22
type: bug/fixhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%2Ffix%22
https://github.com/chabb
chabbhttps://github.com/chabb
on Feb 24, 2026https://github.com/angular/angular-cli/issues/32555#issue-3982599295
https://stackblitz.com/edit/angular-v21-starter-w7aywxrw?file=README.mdhttps://stackblitz.com/edit/angular-v21-starter-w7aywxrw?file=README.md
https://stackblitz.com/edit/angular-v21-starter-w7aywxrw?file=README.mdhttps://stackblitz.com/edit/angular-v21-starter-w7aywxrw?file=README.md
https://github.com/JeanMeche
JeanMechehttps://github.com/JeanMeche
on Feb 24, 2026https://github.com/angular/angular-cli/issues/32555#issuecomment-3950765628
@chabbhttps://github.com/chabb
alan-agius4https://github.com/alan-agius4
needs: investigationRequires some digging to determine if action is neededhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22needs%3A%20investigation%22
area: @angular/buildhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22area%3A%20%40angular%2Fbuild%22
angular/build:unit-testhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22angular%2Fbuild%3Aunit-test%22
on Feb 24, 2026https://github.com/angular/angular-cli/issues/32555#event-23030508630
alan-agius4https://github.com/alan-agius4
Enhancementhttps://github.com/angular/angular-cli/issues?q=type:"Enhancement"
on Feb 24, 2026https://github.com/angular/angular-cli/issues/32555#event-23030533642
alan-agius4https://github.com/alan-agius4
Enhancementhttps://github.com/angular/angular-cli/issues?q=type:"Enhancement"
Bughttps://github.com/angular/angular-cli/issues?q=type:"Bug"
on Feb 24, 2026https://github.com/angular/angular-cli/issues/32555#event-23030534606
alan-agius4https://github.com/alan-agius4
type: bug/fixhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%2Ffix%22
on Feb 24, 2026https://github.com/angular/angular-cli/issues/32555#event-23030536155
https://github.com/chabb
chabbhttps://github.com/chabb
on Feb 24, 2026https://github.com/angular/angular-cli/issues/32555#issuecomment-3952219629
https://private-user-images.githubusercontent.com/6769316/554182433-9e1b8a2a-11af-40e2-9f6b-c58c73ab73fe.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTUyODc3MDgsIm5iZiI6MTc5NTI4NzQwOCwicGF0aCI6Ii82NzY5MzE2LzU1NDE4MjQzMy05ZTFiOGEyYS0xMWFmLTQwZTItOWY2Yi1jNThjNzNhYjczZmUucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI2MTEyMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNjExMjFUMTg1NjQ4WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZGIyYWE4ODYwNGNmNTU3ZmRmZTZjYzUyMjgyNGM0MmQ4ZmIyZDEyMmJiNjhiMzUzODMxYmU3YmE0YjliOTUwZCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmcmVzcG9uc2UtY29udGVudC10eXBlPWltYWdlJTJGcG5nIn0.oORvLOQ7SoRlZNCB3ViuB4D3x-vGxUR7_82NrIwf5iQ
https://github.com/clydin
clydinhttps://github.com/clydin
on Aug 13, 2026https://github.com/angular/angular-cli/issues/32555#issuecomment-5286177053
#33729https://github.com/angular/angular-cli/pull/33729
clydinhttps://github.com/clydin
completedhttps://github.com/angular/angular-cli/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Aug 13, 2026https://github.com/angular/angular-cli/issues/32555#event-29424161169
https://github.com/apps/angular-automatic-lock-bot
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Oct 19, 2026https://github.com/angular/angular-cli/issues/32555#issuecomment-6257040756
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 Oct 19, 2026https://github.com/angular/angular-cli/issues/32555#event-33599946302
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular-cli/issues/32555
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/32555
angular/build:unit-testhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22angular%2Fbuild%3Aunit-test%22
area: @angular/buildhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22area%3A%20%40angular%2Fbuild%22
needs: investigationRequires some digging to determine if action is neededhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22needs%3A%20investigation%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.