Repository navigation
Conversation
|
No actionable comments were generated in the recent review.
|
|
Superseded: #34202 already fixed this test fixture on main. |
|
No actionable comments were generated in the recent review.
|
|
Superseded: #34202 already fixed this test fixture on main. |
ELI5
Main stopped typechecking: a test added by one PR built a fake store that a second PR, merged around the same time, had since made incomplete. This adds the two missing fields to that fake. It's test-only.
What Changed
Before:
pnpm tcfailed on main withdoc-preview-external-link-confirmation.test.ts(86,39): TS2322 … is not assignable to type 'HttpLinkStoreState'. Property 'repos' is missing.HttpLinkStoreStateinclude the project catalog (repos,projectHostSetupProjection).After: the fixture includes
repos: [],endpointProjects: []andendpointProjectHostSetups: [], which means an empty project catalog, in the same form as the sibling http-link test fixtures. It needs no casts. The object stays structurally typed because the same fixture also serves the mocked app store, which needsentityIdon its tabs.Why
The test's scenario has no projects, so an empty catalog is the honest fixture. Review confirmed that no test here reaches the catalog read, which only happens for loopback links with localhost labels enabled from a local source. So the change can't make a test pass for the wrong reason. Annotating the object as
HttpLinkStoreStatewould reject the app-store-onlyentityIdfield and narrow the mutablesettings, so I didn't do that.Linked Issue
N/A (main break: semantic merge conflict between #32272 and #33622).
Visual Proof
N/A: test-only.
Testing
doc-preview-external-link-confirmation.test.ts: 14 tests pass.pnpm tcno longer reports this file. The one remaining error, inagent-account-restart-startup.ts, is fixed separately by test(accounts): cover the workspace-folder fallback for account-restart resume cwd #34203.oxlint, the ast-grep gates and the changed-code gate pass.
I manually tested these changes locally
Automated tests added/updated, or explained why not below
AI Disclosure
Review
Agent skill upstream boundary
Notes
Test-only. There's no runtime impact.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)