test(control-plane): port workspace.test.ts to it.instance (#28572)

This commit is contained in:
Kit Langton
2026-05-20 23:23:26 -04:00
committed by GitHub
parent 8fc02b0130
commit d37f9e770b
3 changed files with 477 additions and 445 deletions

View File

@@ -1,4 +1,5 @@
import { Context, Effect, FiberMap, Iterable, Layer, Schema, Stream } from "effect"
import { serviceUse } from "@/effect/service-use"
import { FetchHttpClient, HttpBody, HttpClient, HttpClientError, HttpClientRequest } from "effect/unstable/http"
import { Database } from "@/storage/db"
import { asc } from "drizzle-orm"
@@ -167,6 +168,8 @@ export interface Interface {
export class Service extends Context.Service<Service, Interface>()("@opencode/Workspace") {}
export const use = serviceUse(Service)
export const layer = Layer.effect(
Service,
Effect.gen(function* () {