René's URL Explorer Experiment


Title: Jasmine createSpyObj w/ properties: Properties lost when spy is provided to and retrieved from TestBed · Issue #33657 · angular/angular · GitHub

Open Graph Title: Jasmine createSpyObj w/ properties: Properties lost when spy is provided to and retrieved from TestBed · Issue #33657 · angular/angular

X Title: Jasmine createSpyObj w/ properties: Properties lost when spy is provided to and retrieved from TestBed · Issue #33657 · angular/angular

Description: 🐞 bug report Is this a regression? No Description Jasmine 3.5.0 added a new parameter to createSpyObj that allows you to specify properties in addition to methods (jasmine/jasmine#1442), however if I create a spy object that way in a bef...

Open Graph Description: 🐞 bug report Is this a regression? No Description Jasmine 3.5.0 added a new parameter to createSpyObj that allows you to specify properties in addition to methods (jasmine/jasmine#1442), however if...

X Description: 🐞 bug report Is this a regression? No Description Jasmine 3.5.0 added a new parameter to createSpyObj that allows you to specify properties in addition to methods (jasmine/jasmine#1442), however if...

Opengraph URL: https://github.com/angular/angular/issues/33657

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Jasmine createSpyObj w/ properties: Properties lost when spy is provided to and retrieved from TestBed","articleBody":"# 🐞 bug report\r\n### Is this a regression?\r\nNo\r\n\r\n\r\n### Description\r\nJasmine 3.5.0 added a new parameter to createSpyObj that allows you to specify properties in addition to methods (https://github.com/jasmine/jasmine/issues/1442), however if I create a spy object that way in a beforeEach() and provide it in TestBed.configureTestingModule, then get it with TestBed.get() in an \"it\" block, the mock function is there but the mock property is not.\r\n\r\n\r\n## 🔬 Minimal Reproduction\r\nhttps://stackblitz.com/edit/angular-issue-repro2-yayobe I tried to make a blitz with a repro but I have no idea how to make it actually run the test.\r\n\r\nThe important part is this:\r\n\r\n```\r\ndescribe('AppComponent', () => {\r\n  beforeEach(() => {\r\n\r\n    //Note the third parameter\r\n    // @ts-ignore\r\n    const someServiceSpy = jasmine.createSpyObj('SomeService', ['someFunction'], ['aProperty']);\r\n\r\n    TestBed.configureTestingModule({\r\n      declarations: [\r\n        AppComponent\r\n      ],\r\n      providers: [\r\n        {provide: SomeService, useValue: someServiceSpy},\r\n      ]\r\n    }).compileComponents();\r\n\r\n  });\r\n\r\n  it('should create the app', () => {\r\n    //spyObj will have someFunction, but will not have aProperty\r\n    let spyObj = TestBed.get(SomeService);\r\n  });\r\n```\r\n\r\n## 🌍  Your Environment\r\n\r\n**Angular Version:**\r\n\u003cpre>\u003ccode>\r\n\u003c!-- run `ng version` and paste output below -->\r\nAngular CLI: 7.3.9\r\nNode: 10.15.0\r\nOS: win32 x64\r\nAngular: 7.2.15\r\n... animations, common, compiler, compiler-cli, core, forms\r\n... http, platform-browser, platform-browser-dynamic\r\n... platform-server, router\r\n\r\nPackage                           Version\r\n-----------------------------------------------------------\r\n@angular-devkit/architect         0.8.9\r\n@angular-devkit/build-angular     0.8.9\r\n@angular-devkit/build-optimizer   0.8.9\r\n@angular-devkit/build-webpack     0.8.9\r\n@angular-devkit/core              0.8.9\r\n@angular-devkit/schematics        7.3.9\r\n@angular/cdk                      7.3.7\r\n@angular/cli                      7.3.9\r\n@ngtools/webpack                  6.2.9\r\n@schematics/angular               7.3.9\r\n@schematics/update                0.13.9\r\nrxjs                              6.5.3\r\ntypescript                        3.2.4\r\nwebpack                           4.16.4\r\n\r\n\u003c/code>\u003c/pre>\r\n","author":{"url":"https://github.com/daleclements","@type":"Person","name":"daleclements"},"datePublished":"2019-11-07T17:14:48Z","url":"https://github.com/angular/angular/issues/33657"}

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:87fcf034-b0ab-6c85-b118-e4b7dfa4ea1b
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB0F8:E3C4F:1DD8BB8:2606635:6B0165BE
html-safe-nonceac90d512afe01e1c14178264d941a4fc5d2dd2683a3f900842cf019cca9e14b6
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMEY4OkUzQzRGOjFERDhCQjg6MjYwNjYzNTo2QjAxNjVCRSIsInZpc2l0b3JfaWQiOiI4MzMzMzE5MTQxMTk2OTE2MTU5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac12a3f3e2d5b56bdf4ad455df31d1e5904285b3f51a794b7957ac4f4d1e65bafc
hovercard-subject-tagissue:519401424
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/33657/issue_layout
twitter:imagehttps://opengraph.githubassets.com/2da1cdb82faf261489dcc8ae43f5f13129b8fa0863553c81108224c1078a1230/angular/angular/issues/33657
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/2da1cdb82faf261489dcc8ae43f5f13129b8fa0863553c81108224c1078a1230/angular/angular/issues/33657
og:image:alt🐞 bug report Is this a regression? No Description Jasmine 3.5.0 added a new parameter to createSpyObj that allows you to specify properties in addition to methods (jasmine/jasmine#1442), however if...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedaleclements
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
go-importgithub.com/angular/angular git https://github.com/angular/angular.git
octolytics-dimension-user_id139426
octolytics-dimension-user_loginangular
octolytics-dimension-repository_id24195339
octolytics-dimension-repository_nwoangular/angular
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id24195339
octolytics-dimension-repository_network_root_nwoangular/angular
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/issues/33657#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F33657
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%2Fissues%2F33657
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
Reloadhttps://github.com/angular/angular/issues/33657
Reloadhttps://github.com/angular/angular/issues/33657
Reloadhttps://github.com/angular/angular/issues/33657
angularhttps://github.com/angular
angularhttps://github.com/angular/angular
Codehttps://github.com/angular/angular
Issues836 (836)https://github.com/angular/angular/issues
Pull requests141 (141)https://github.com/angular/angular/pulls
Discussionshttps://github.com/angular/angular/discussions
Actionshttps://github.com/angular/angular/actions
Projectshttps://github.com/angular/angular/projects
Security and quality40 (40)https://github.com/angular/angular/security
Insightshttps://github.com/angular/angular/insights
https://github.com/angular/angular
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/33657
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/33657
Jasmine createSpyObj w/ properties: Properties lost when spy is provided to and retrieved from TestBedhttps://github.com/angular/angular/issues/33657#top
area: testingIssues related to Angular testing features, such as TestBedhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20testing%22
needsTriagehttps://github.com/angular/angular/milestone/83
https://github.com/daleclements
daleclementshttps://github.com/daleclements
on Nov 7, 2019https://github.com/angular/angular/issues/33657#issue-519401424
jasmine/jasmine#1442https://github.com/jasmine/jasmine/issues/1442
https://stackblitz.com/edit/angular-issue-repro2-yayobehttps://stackblitz.com/edit/angular-issue-repro2-yayobe
atscotthttps://github.com/atscott
area: testingIssues related to Angular testing features, such as TestBedhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20testing%22
on Nov 7, 2019https://github.com/angular/angular/issues/33657#event-2781059346
ngbothttps://github.com/apps/ngbot
needsTriagehttps://github.com/angular/angular/milestone/83
on Nov 7, 2019https://github.com/angular/angular/issues/33657#event-2781059387
https://github.com/JiaLiPassion
JiaLiPassionhttps://github.com/JiaLiPassion
on Nov 16, 2019https://github.com/angular/angular/issues/33657#issuecomment-554616321
@daleclementshttps://github.com/daleclements
https://github.com/jasmine/jasmine/pull/1722/files#diff-f627290893ae16272e030bb1632e9c0dR178-R205https://github.com/jasmine/jasmine/pull/1722/files#diff-f627290893ae16272e030bb1632e9c0dR178-R205
JiaLiPassionhttps://github.com/JiaLiPassion
completedhttps://github.com/angular/angular/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Nov 16, 2019https://github.com/angular/angular/issues/33657#event-2804634099
JiaLiPassionhttps://github.com/JiaLiPassion
on Nov 16, 2019https://github.com/angular/angular/issues/33657#event-2804649261
https://github.com/JiaLiPassion
JiaLiPassionhttps://github.com/JiaLiPassion
on Nov 16, 2019https://github.com/angular/angular/issues/33657#issuecomment-554618526
https://github.com/vikerman
vikermanhttps://github.com/vikerman
on Nov 19, 2019https://github.com/angular/angular/issues/33657#issuecomment-555732784
vikermanhttps://github.com/vikerman
completedhttps://github.com/angular/angular/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Nov 19, 2019https://github.com/angular/angular/issues/33657#event-2813150587
https://github.com/daleclements
daleclementshttps://github.com/daleclements
on Nov 21, 2019https://github.com/angular/angular/issues/33657#issuecomment-557155176
@JiaLiPassionhttps://github.com/JiaLiPassion
https://github.com/JiaLiPassion
JiaLiPassionhttps://github.com/JiaLiPassion
on Nov 22, 2019https://github.com/angular/angular/issues/33657#issuecomment-557528712
@daleclementshttps://github.com/daleclements
https://github.com/p0lar-bear
p0lar-bearhttps://github.com/p0lar-bear
on Dec 16, 2019https://github.com/angular/angular/issues/33657#issuecomment-566241478
https://github.com/AlesDo
AlesDohttps://github.com/AlesDo
on Dec 17, 2019https://github.com/angular/angular/issues/33657#issuecomment-566638552
https://github.com/daleclements
daleclementshttps://github.com/daleclements
on Dec 17, 2019https://github.com/angular/angular/issues/33657#issuecomment-566645912
@AlesDohttps://github.com/AlesDo
https://github.com/pickfire
pickfirehttps://github.com/pickfire
on Dec 23, 2019https://github.com/angular/angular/issues/33657#issuecomment-568399989
https://github.com/JiaLiPassion
JiaLiPassionhttps://github.com/JiaLiPassion
on Jan 2, 2020https://github.com/angular/angular/issues/33657#issuecomment-570120693
@daleclementshttps://github.com/daleclements
https://github.com/daleclements
daleclementshttps://github.com/daleclements
on Jan 2, 2020https://github.com/angular/angular/issues/33657#issuecomment-570321392
@JiaLiPassionhttps://github.com/JiaLiPassion
https://github.com/daleclements/reproduce-angular-issue33657https://github.com/daleclements/reproduce-angular-issue33657
JiaLiPassionhttps://github.com/JiaLiPassion
on Jan 3, 2020https://github.com/angular/angular/issues/33657#event-2919424778
https://github.com/JiaLiPassion
JiaLiPassionhttps://github.com/JiaLiPassion
on Jan 3, 2020https://github.com/angular/angular/issues/33657#issuecomment-570466728
@daleclementshttps://github.com/daleclements
https://github.com/bre-smith
bre-smithhttps://github.com/bre-smith
on Feb 6, 2020https://github.com/angular/angular/issues/33657#issuecomment-583152366
@daleclementshttps://github.com/daleclements
JiaLiPassionhttps://github.com/JiaLiPassion
on Jun 29, 2020https://github.com/angular/angular/issues/33657#event-3493866821
feat(zone.js): patch jasmine.createSpyObj to make properties enumerab…https://github.com/JiaLiPassion/angular/commit/53a1c71b0eb79721809408008835bd91dbc2c8d4
https://docs.github.com/articles/closing-issues-via-commit-messages
53a1c71https://github.com/JiaLiPassion/angular/commit/53a1c71b0eb79721809408008835bd91dbc2c8d4
AndrewKushnirhttps://github.com/AndrewKushnir
completedhttps://github.com/angular/angular/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
c2b4d92https://github.com/angular/angular/commit/c2b4d9270867e368249d865a6ea5dc4e1342640b
on Jun 29, 2020https://github.com/angular/angular/issues/33657#event-3494171915
https://github.com/apps/angular-automatic-lock-bot
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Jul 30, 2020https://github.com/angular/angular/issues/33657#issuecomment-666499402
automatic conversation locking policyhttps://github.com/angular/angular/blob/67d80f/docs/GITHUB_PROCESS.md#conversation-locking
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Jul 30, 2020https://github.com/angular/angular/issues/33657#event-3604677005
profanishttps://github.com/profanis
on Sep 5, 2020https://github.com/angular/angular/issues/33657#event-3732916368
feat(zone.js): patch jasmine.createSpyObj to make properties enumerab…https://github.com/profanis/angular/commit/38124b06282ce7c26c81444bbdfa011bfffd0deb
https://docs.github.com/articles/closing-issues-via-commit-messages
38124b0https://github.com/profanis/angular/commit/38124b06282ce7c26c81444bbdfa011bfffd0deb
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular/issues/33657
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular/issues/33657
area: testingIssues related to Angular testing features, such as TestBedhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20testing%22
needsTriageNo due datehttps://github.com/angular/angular/milestone/83
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.