René's URL Explorer Experiment


Title: Unhandled promise rejections aren't properly reported in tests · Issue #30861 · angular/angular-cli · GitHub

Open Graph Title: Unhandled promise rejections aren't properly reported in tests · Issue #30861 · angular/angular-cli

X Title: Unhandled promise rejections aren't properly reported in tests · Issue #30861 · angular/angular-cli

Description: Which @angular/* package(s) are the source of the bug? Don't known / other Is this a regression? Yes Description In an Angular project that uses zone.js, unhandled promise rejections are not reported. In a zoneless Angular project, they ...

Open Graph Description: Which @angular/* package(s) are the source of the bug? Don't known / other Is this a regression? Yes Description In an Angular project that uses zone.js, unhandled promise rejections are not report...

X Description: Which @angular/* package(s) are the source of the bug? Don't known / other Is this a regression? Yes Description In an Angular project that uses zone.js, unhandled promise rejections are not re...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Unhandled promise rejections aren't properly reported in tests","articleBody":"### Which @angular/* package(s) are the source of the bug?\n\nDon't known / other\n\n### Is this a regression?\n\nYes\n\n### Description\n\nIn an Angular project that uses zone.js, unhandled promise rejections are not reported. In a zoneless Angular project, they are reported twice.\n\nSteps to reproduce:\n\n1. Create a new Angular project.\n2. Paste the code below into a spec file.\n3. `npm t`\n\n```\nit('triggers an unhandled rejection', function(done) {\n\tPromise.reject(new Error('nope'));\n\n\t// Make sure the unhandled rejection event has plenty of time to fire before\n\t// Jasmine finishes running. This helps distinguish between timing issues\n\t// (event is firing a bit later than usual) and the event not firing at all.\n\tsetTimeout(done, 1000);\n});\n```\n\nExpected result: The spec should fail with a single \"Unhandled promise\nrejection: Error: nope\" error.\n\nObserved:\n* If the project was set up zoneless, the spec fails with two copies of the expected error.\n* Otherwise, the spec passes.\n\n### Please provide a link to a minimal reproduction of the bug\n\nhttps://github.com/sgravrock/ng-unhandled-rejection\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\n_                      _                 ____ _     ___\n    / \\   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|\n   / △ \\ | '_ \\ / _` | | | | |/ _` | '__|   | |   | |    | |\n  / ___ \\| | | | (_| | |_| | | (_| | |      | |___| |___ | |\n /_/   \\_\\_| |_|\\__, |\\__,_|_|\\__,_|_|       \\____|_____|___|\n                |___/\n    \n\nAngular CLI: 20.1.5\nNode: 20.19.0\nPackage Manager: npm 10.8.2\nOS: darwin arm64\n\nAngular: 20.1.6\n... common, compiler, compiler-cli, core, forms\n... platform-browser, router\n\nPackage                      Version\n------------------------------------------------------\n@angular-devkit/architect    0.2001.5\n@angular-devkit/core         20.1.5\n@angular-devkit/schematics   20.1.5\n@angular/build               20.1.5\n@angular/cli                 20.1.5\n@schematics/angular          20.1.5\nrxjs                         7.8.2\ntypescript                   5.8.3\nzone.js                      0.15.1\n```\n\n### Anything else?\n\n_No response_","author":{"url":"https://github.com/sgravrock","@type":"Person","name":"sgravrock"},"datePublished":"2025-08-09T17:20:37Z","url":"https://github.com/angular/angular-cli/issues/30861"}

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:ebc35d9f-6311-b82c-cdf1-61dc9a401244
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE716:2454CC:34F4DCF:4333BF2:6B01E2CD
html-safe-nonce3021d5d3534f8f2c54a2810122f60b302636b8b17de1011560ad5fc711d04b54
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNzE2OjI0NTRDQzozNEY0RENGOjQzMzNCRjI6NkIwMUUyQ0QiLCJ2aXNpdG9yX2lkIjoiODA5NTIyMjE0NDQ2OTk1MTE4MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac89fe3717cc628c2f4ae493d60705a0f821ac1e89888251d59f64efb7e714d9ee
hovercard-subject-tagissue:3308243946
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/30861/issue_layout
twitter:imagehttps://opengraph.githubassets.com/b7618016194c936aa4706fc4062686501ac7eccd1ca042d5cc857992e603f363/angular/angular-cli/issues/30861
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/b7618016194c936aa4706fc4062686501ac7eccd1ca042d5cc857992e603f363/angular/angular-cli/issues/30861
og:image:altWhich @angular/* package(s) are the source of the bug? Don't known / other Is this a regression? Yes Description In an Angular project that uses zone.js, unhandled promise rejections are not report...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamesgravrock
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/30861#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular-cli%2Fissues%2F30861
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%2F30861
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/30861
Reloadhttps://github.com/angular/angular-cli/issues/30861
Reloadhttps://github.com/angular/angular-cli/issues/30861
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/30861
New issuehttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/30861
Unhandled promise rejections aren't properly reported in testshttps://github.com/angular/angular-cli/issues/30861#top
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
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
needsTriagehttps://github.com/angular/angular-cli/milestone/11
https://github.com/sgravrock
sgravrockhttps://github.com/sgravrock
on Aug 9, 2025https://github.com/angular/angular-cli/issues/30861#issue-3308243946
https://github.com/sgravrock/ng-unhandled-rejectionhttps://github.com/sgravrock/ng-unhandled-rejection
https://github.com/JeanMeche
JeanMechehttps://github.com/JeanMeche
on Aug 9, 2025https://github.com/angular/angular-cli/issues/30861#issuecomment-3173104270
JeanMechehttps://github.com/JeanMeche
not plannedhttps://github.com/angular/angular-cli/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Anot-planned
on Aug 9, 2025https://github.com/angular/angular-cli/issues/30861#event-19078960742
atscotthttps://github.com/atscott
on Aug 9, 2025https://github.com/angular/angular-cli/issues/30861#event-19078960746
https://github.com/atscott
atscotthttps://github.com/atscott
on Aug 9, 2025https://github.com/angular/angular-cli/issues/30861#issuecomment-3173104275
@JeanMechehttps://github.com/JeanMeche
angular/angular#51357 (comment)https://github.com/angular/angular/issues/51357#issuecomment-2555564572
https://private-user-images.githubusercontent.com/479713/476318967-e5630733-1538-43e7-b356-b1e51c38bb0f.jpg?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTUyODYwMDksIm5iZiI6MTc5NTI4NTcwOSwicGF0aCI6Ii80Nzk3MTMvNDc2MzE4OTY3LWU1NjMwNzMzLTE1MzgtNDNlNy1iMzU2LWIxZTUxYzM4YmIwZi5qcGc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYxMTIxJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MTEyM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
needsTriagehttps://github.com/angular/angular-cli/milestone/11
on Aug 9, 2025https://github.com/angular/angular-cli/issues/30861#event-19078960759
https://github.com/sgravrock
sgravrockhttps://github.com/sgravrock
on Aug 10, 2025https://github.com/angular/angular-cli/issues/30861#issuecomment-3173104283
https://github.com/JeanMeche
JeanMechehttps://github.com/JeanMeche
on Aug 10, 2025https://github.com/angular/angular-cli/issues/30861#issuecomment-3173104286
@atscotthttps://github.com/atscott
6d7eb3548c5fc3aedb4a52ff2010141343748e90https://github.com/angular/angular/commit/6d7eb3548c5fc3aedb4a52ff2010141343748e90
https://github.com/atscott
atscotthttps://github.com/atscott
on Aug 11, 2025https://github.com/angular/angular-cli/issues/30861#issuecomment-3173104290
angular/angular#51357 (comment)https://github.com/angular/angular/issues/51357#issuecomment-2555564572
atscotthttps://github.com/atscott
angular/angularhttps://github.com/angular/angular
on Aug 11, 2025https://github.com/angular/angular-cli/issues/30861#event-19078960995
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-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
on Aug 11, 2025https://github.com/angular/angular-cli/issues/30861#event-19082273396
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular-cli/issues/30861
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/30861
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
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
needsTriageNo due datehttps://github.com/angular/angular-cli/milestone/11
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.