Skip to content

test: cover ConfigService helper#25042

Merged
kitlangton merged 2 commits into
devfrom
config-service-tests
Apr 30, 2026
Merged

test: cover ConfigService helper#25042
kitlangton merged 2 commits into
devfrom
config-service-tests

Conversation

@kitlangton
Copy link
Copy Markdown
Contributor

Summary

  • Add focused tests for ConfigService.Service default config parsing and direct test-layer provisioning.
  • Verify Effect Config defaults apply and Config.option remains an Option in the generated service shape.

Tests

  • bunx prettier --write packages/opencode/test/effect/config-service.test.ts
  • bunx oxlint packages/opencode/test/effect/config-service.test.ts
  • bun typecheck from packages/opencode
  • bun run test -- test/effect/config-service.test.ts
  • push hook: bun turbo typecheck

Follow-up Candidates

  • server/backend.ts: small OPENCODE_EXPERIMENTAL_HTTPAPI boolean config service for backend selection tests.
  • server/workspace.ts / HttpApi workspace routing: centralize OPENCODE_WORKSPACE_ID as typed config.
  • tool/bash.ts: move bash timeout/env-related flags into a typed config service where runtime/test overrides are useful.

@kitlangton kitlangton merged commit c49bf0b into dev Apr 30, 2026
10 checks passed
@kitlangton kitlangton deleted the config-service-tests branch April 30, 2026 02:42
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