Files
backnotprop__plannotator/apps/opencode-plugin/export-shape.test.ts
Michael Ramos 3de555f5e5 Fix OpenCode plugin runtime compatibility (#849)
* fix(opencode): add host-compatible runtime bridge

* fix(opencode): preserve parity in cli bridge

* test(opencode): add isolated sandbox launcher

* test(opencode): keep reusable sandbox launchers

* test(opencode): export local plugin default

* test(opencode): install OpenChamber deps when needed

* test(opencode): avoid OpenChamber default port collision

* fix(opencode): harden cli bridge fallback

* test(opencode): clean isolated sandbox helpers
2026-06-04 18:14:05 -07:00

13 lines
410 B
TypeScript

import { describe, expect, test } from "bun:test";
describe("OpenCode plugin entry export shape", () => {
test("exports only the default plugin function", async () => {
const mod = await import("./index");
const functionExports = Object.entries(mod)
.filter(([, value]) => typeof value === "function")
.map(([name]) => name);
expect(functionExports).toEqual(["default"]);
});
});