Skip to content

refactor: extract host middleware/routes, add api test suite - #232

Merged
elliotBraem merged 1 commit into
mainfrom
refactor/host
Aug 11, 2026
Merged

refactor: extract host middleware/routes, add api test suite#232
elliotBraem merged 1 commit into
mainfrom
refactor/host

Conversation

@elliotBraem

Copy link
Copy Markdown
Contributor
  • host: extract security middleware (cors/csrf/rate-limit/csp), static asset proxy, and API oRPC route setup out of program.ts into dedicated modules composed via SecurityMiddleware Live layer
  • host: emit site.webmanifest manifest link in renderClientShell and fix runtime-remote test to assert it (drop stale BOS iframe assertion)
  • host: dedupe normalizeDomain/normalizeUrl/extractErrorDetails into utils, remove inline duplicates from program/plugins/tenant-runtime
  • api: add vitest config, HTTP integration harness with typed oRPC clients and injectable auth/org context, integration tests for ping/ authHealth/resolveTenant/preflight/testError, and PGlite unit tests for TenantsService; fixes 'no test files found' in test:api

- host: extract security middleware (cors/csrf/rate-limit/csp), static
  asset proxy, and API oRPC route setup out of program.ts into dedicated
  modules composed via SecurityMiddleware Live layer
- host: emit site.webmanifest manifest link in renderClientShell and fix
  runtime-remote test to assert it (drop stale BOS iframe assertion)
- host: dedupe normalizeDomain/normalizeUrl/extractErrorDetails into
  utils, remove inline duplicates from program/plugins/tenant-runtime
- api: add vitest config, HTTP integration harness with typed oRPC
  clients and injectable auth/org context, integration tests for ping/
  authHealth/resolveTenant/preflight/testError, and PGlite unit tests
  for TenantsService; fixes 'no test files found' in test:api
@elliotBraem
elliotBraem merged commit 7138a8b into main Aug 11, 2026
6 checks passed
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