History

apps: fix e2e emulator types for repo typecheck

Rhys Sullivan committed 4 months ago

Commit ef1831a1 parent efca3dd1 file · +4 −2Browse files

Unified · Split

packages/plugins/apps/src/testing/e2e.test.ts+4−2
@@ -4,7 +4,9 @@ import { join } from "node:path"; · 3 unmodified lines
44
55 import { describe, expect, it, beforeAll, afterAll } from "vitest";
66 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>>;
810
911 import { makeSelfHostAppsRuntime, type SelfHostAppsRuntime } from "../plugin/self-host-runtime";
1012 import { makeAppsHttpRoutes } from "../http/routes";
@@ -52,7 +54,7 @@ class FakeMcpServer implements McpServerLike { · 41 unmodified lines
5254 const run = <A, E>(effect: Effect.Effect<A, E>): Promise<A> => Effect.runPromise(effect as never);
5355
5456 describe("Executor apps e2e (self-host, real GitHub emulator)", () => {
55− let github: EmulatorClient;
57+ let github: LocalEmulator;
5658 let host: SelfHostAppsRuntime;
5759 let http: ReturnType<typeof makeAppsHttpRoutes>;
5860 let mcp: FakeMcpServer;