Unified · Split
| @@ -4,7 +4,9 @@ import { join } from "node:path"; · 3 unmodified lines | |||
| 4 | 4 | ||
| 5 | import { describe, expect, it, beforeAll, afterAll } from "vitest"; | 5 | import { describe, expect, it, beforeAll, afterAll } from "vitest"; |
| 6 | import { Effect } from "effect"; | 6 | import { Effect } from "effect"; |
| 7 | import { createEmulator, type EmulatorClient } from "@executor-js/emulate"; | 7 | import { createEmulator } from "@executor-js/emulate"; |
| 8 | |||
| 9 | type LocalEmulator = Awaited<ReturnType<typeof createEmulator>>; | ||
| 8 | 10 | ||
| 9 | import { makeSelfHostAppsRuntime, type SelfHostAppsRuntime } from "../plugin/self-host-runtime"; | 11 | import { makeSelfHostAppsRuntime, type SelfHostAppsRuntime } from "../plugin/self-host-runtime"; |
| 10 | import { makeAppsHttpRoutes } from "../http/routes"; | 12 | import { makeAppsHttpRoutes } from "../http/routes"; |
| @@ -52,7 +54,7 @@ class FakeMcpServer implements McpServerLike { · 41 unmodified lines | |||
| 52 | const run = <A, E>(effect: Effect.Effect<A, E>): Promise<A> => Effect.runPromise(effect as never); | 54 | const run = <A, E>(effect: Effect.Effect<A, E>): Promise<A> => Effect.runPromise(effect as never); |
| 53 | 55 | ||
| 54 | describe("Executor apps e2e (self-host, real GitHub emulator)", () => { | 56 | describe("Executor apps e2e (self-host, real GitHub emulator)", () => { |
| 55 | let github: EmulatorClient; | 57 | let github: LocalEmulator; |
| 56 | let host: SelfHostAppsRuntime; | 58 | let host: SelfHostAppsRuntime; |
| 57 | let http: ReturnType<typeof makeAppsHttpRoutes>; | 59 | let http: ReturnType<typeof makeAppsHttpRoutes>; |
| 58 | let mcp: FakeMcpServer; | 60 | let mcp: FakeMcpServer; |