-
Notifications
You must be signed in to change notification settings - Fork 27.2k
TestBed.overrideComponent doesn't update standalone components #48432
Copy link
Copy link
Open
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: testingIssues related to Angular testing features, such as TestBedIssues related to Angular testing features, such as TestBedbugcross-cutting: standaloneIssues related to the NgModule-less worldIssues related to the NgModule-less world
Milestone
Metadata
Metadata
Assignees
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: testingIssues related to Angular testing features, such as TestBedIssues related to Angular testing features, such as TestBedbugcross-cutting: standaloneIssues related to the NgModule-less worldIssues related to the NgModule-less world
Which @angular/* package(s) are the source of the bug?
core
Is this a regression?
No
Description
This removes imports - expected.
This doesn't change imports - unexpected.
There is stackblitz example - simply copy/paste the
test.spec.tsto an angular v15 (v14 has his issue too) project.Please provide a link to a minimal reproduction of the bug
https://github.com/satanTime/ng-mocks/blob/issues/4486/tests/issue-4486/angular.spec.ts
Please provide the exception or error you saw
No response
Please provide the environment you discovered this bug in (run
ng version)Anything else?
No response