MCPcopy Create free account
hub / github.com/CreminiAI/skillpack / FakeTransport

Class FakeTransport

tests/host-ipc-client.test.ts:7–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5import { HostIpcClient } from "../src/runtime/host-ipc/host-ipc-client.js";
6
7class FakeTransport extends EventEmitter {
8 connected = true;
9 sent: unknown[] = [];
10
11 send(message: unknown): boolean {
12 this.sent.push(message);
13 return true;
14 }
15}
16
17test("host IPC client reports cleared channel sessions", async () => {
18 const transport = new FakeTransport();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected