Skip to content

test: cover HttpApi workspace routing middleware#25027

Merged
kitlangton merged 7 commits into
devfrom
httpapi-workspace-routing-middleware-tests
Apr 30, 2026
Merged

test: cover HttpApi workspace routing middleware#25027
kitlangton merged 7 commits into
devfrom
httpapi-workspace-routing-middleware-tests

Conversation

@kitlangton
Copy link
Copy Markdown
Contributor

Summary

  • Add focused Effect-native coverage for HttpApi workspace routing middleware across remote HTTP, remote WebSocket, local workspace context, control-plane routing, fallback directory hints, missing workspaces, and inactive remote sync.
  • Keep proxy/routing tests aligned with Effect HttpServer responses and simplify shared test setup.
  • Clean up WebSocket echo test helpers to handle binary-capable frame types explicitly.

Tests

  • bunx prettier --write packages/opencode/test/server/httpapi-workspace-routing.test.ts packages/opencode/test/server/workspace-proxy.test.ts packages/opencode/test/server/workspace-routing.test.ts
  • bunx oxlint packages/opencode/test/server/httpapi-workspace-routing.test.ts packages/opencode/test/server/workspace-proxy.test.ts packages/opencode/test/server/workspace-routing.test.ts
  • bun typecheck from packages/opencode
  • bun run test -- test/server/httpapi-workspace-routing.test.ts test/server/workspace-proxy.test.ts test/server/workspace-routing.test.ts from packages/opencode
  • push hook: bun turbo typecheck

@kitlangton kitlangton enabled auto-merge (squash) April 30, 2026 01:03
@kitlangton kitlangton disabled auto-merge April 30, 2026 01:08
@kitlangton kitlangton merged commit 9052e8a into dev Apr 30, 2026
9 checks passed
@kitlangton kitlangton deleted the httpapi-workspace-routing-middleware-tests branch April 30, 2026 01:08
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