Skip to content

Fix red main typecheck: import PresenceRouter in presence-scenario.test#153

Merged
th3-br41n merged 1 commit into
mainfrom
fix/presence-scenario-test-typecheck
Jul 13, 2026
Merged

Fix red main typecheck: import PresenceRouter in presence-scenario.test#153
th3-br41n merged 1 commit into
mainfrom
fix/presence-scenario-test-typecheck

Conversation

@th3-br41n

Copy link
Copy Markdown
Contributor

Main is typecheck-red

presence-scenario.test.ts (added in bb17615, the 0.4.2 presence tail) casts a mock through PresenceRouter:

const router = { publish: vi.fn(), untrack: vi.fn() } as unknown as PresenceRouter & {  }

…but never imported the type, so bun run typecheck fails on main:

packages/shell/src/main/sync/presence-scenario.test.ts(72,71): error TS2304: Cannot find name 'PresenceRouter'.

verify runs bun run typecheck, so this blocks the typecheck gate for every open PR. (The 0.4.2 build was unaffected — it's test-only, and the workspace tsc --noEmit isn't the packaging path.)

Fix

Add the missing type-only import (PresenceRouter is used purely as a cast target). typecheck:packages → exit 0; the test's 3 cases still pass.

🤖 Generated with Claude Code

…echeck was red

`presence-scenario.test.ts` (0.4.2 presence tail, bb17615) casts a mock through
`PresenceRouter` but never imported it, so `bun run typecheck` failed on main
(`TS2304: Cannot find name 'PresenceRouter'`) — blocking the typecheck gate for
every open PR. Add the missing type-only import; typecheck:packages green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@th3-br41n th3-br41n merged commit 6eb0dd8 into main Jul 13, 2026
1 of 3 checks passed
@th3-br41n th3-br41n deleted the fix/presence-scenario-test-typecheck branch July 13, 2026 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant