import { afterEach, describe, expect, it } from "bun:test"; import path from "node:path"; import { createTestSession, type TestSession, } from "@marcfargas/pi-test-harness"; describe("ssh-tools pi-test-harness", () => { let t: TestSession | undefined; afterEach(() => { t?.dispose(); t = undefined; }); it("loads in real Pi extension runtime", async () => { const extensionPath = path.resolve(import.meta.dir, "../index.ts"); t = await createTestSession({ extensions: [extensionPath] }); expect(t.session.extensionRunner.extensions).toHaveLength(1); expect(t.session.extensionRunner.extensions[0].path).toBe(extensionPath); }); });