test(devtools): run the orphaned app component spec by erkamyaman · Pull Request #70572 · angular/angular · GitHub
Skip to content

test(devtools): run the orphaned app component spec - #70572

Open
erkamyaman wants to merge 1 commit into
angular:mainfrom
erkamyaman:run-shell-browser-app-component-spec
Open

test(devtools): run the orphaned app component spec#70572
erkamyaman wants to merge 1 commit into
angular:mainfrom
erkamyaman:run-shell-browser-app-component-spec

Conversation

@erkamyaman

Copy link
Copy Markdown
Contributor

app.component.spec.ts has been in the tree since the initial DevTools commit in 2020, but no revision of shell-browser/src/app/BUILD.bazel has ever listed it, and that file has no globs. Two of the three specs in the directory are wired up; this one has never run.

It could not run as written. The setup declared AppComponent and imported RouterModule.forRoot([]), neither of which applies now that the component is standalone and injects MessageBus and DEEP_LINK_INSTANCE_ID.

It now stubs the chrome.devtools surface that ngOnInit reads and covers both lifecycle hooks: the listeners registered on init, the two performance track emits, the three guards on the deep link listener, and the listeners removed on destroy.

Follow-up to #70570, which fixed the same problem in ng-devtools-backend.

`app.component.spec.ts` has been in the tree since the initial DevTools commit
in 2020, but no revision of `shell-browser/src/app/BUILD.bazel` has ever listed
it, and that file has no globs. Two of the three specs in the directory are
wired up; this one has never run.

It could not run as written. The setup declared `AppComponent` and imported
`RouterModule.forRoot([])`, neither of which applies now that the component is
standalone and injects `MessageBus` and `DEEP_LINK_INSTANCE_ID`.

It now stubs the `chrome.devtools` surface that `ngOnInit` reads and covers
both lifecycle hooks: the listeners registered on init, the two performance
track emits, the three guards on the deep link listener, and the listeners
removed on destroy.

Follow-up to angular#70570, which fixed the same problem in ng-devtools-backend.
@pullapprove
pullapprove Bot requested a review from eduhmc September 4, 2026 12:14
@ngbot ngbot Bot added this to the Backlog milestone Sep 4, 2026
@erkamyaman

Copy link
Copy Markdown
Contributor Author

@JeanMeche
JeanMeche requested a review from hawkgs September 4, 2026 23:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant