Skip to content

test: fix strict TypeScript errors in main test suite - #1248

Merged
iruriQ merged 1 commit into
mainfrom
fix/main-test-ts-errors
Nov 26, 2026
Merged

iruriQ merged 1 commit into
mainfrom
fix/main-test-ts-errors

Conversation

@iruriQ

@iruriQ iruriQ commented Nov 26, 2026

Copy link
Copy Markdown
Collaborator

Fix 5 test-only TypeScript errors on main so tsc -p tests/tsconfig.json --noEmit passes cleanly:

  • packages/host-runtime/test/thread-tree-watch.test.ts: assert archived node via toHaveProperty instead of indexing branded HostThreadId record directly.
  • packages/web-server/test/peer-delegation.test.ts: return status: "running" matching ThreadSendResult.
  • packages/web-server/test/peer-thread-links.test.ts: type receivedPeerPrompts with { method: string; params: Record<string, unknown> }.

Validation:

  • npx tsc -p tests/tsconfig.json --noEmit (0 errors)
  • npx vitest run -c tests/vitest.config.js packages/host-runtime/test/thread-tree-watch.test.ts (4/4)
  • node --import tsx --test test/peer-delegation.test.ts test/peer-thread-links.test.ts (9/9)

@iruriQ
iruriQ merged commit 9c7b6be into main Nov 26, 2026
4 of 7 checks passed
@iruriQ
iruriQ deleted the fix/main-test-ts-errors branch November 26, 2026 15:24
@coderabbitai

coderabbitai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

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.

2 participants