This commit is contained in:
@@ -7,6 +7,15 @@ import { z } from "zod";
|
||||
import { build } from "../scripts/build.js";
|
||||
import { install } from "../scripts/install.js";
|
||||
|
||||
test("bundled Effect matches the host's exact Effect version", async () => {
|
||||
const manifest = z.object({ dependencies: z.record(z.string(), z.string()) });
|
||||
const own = manifest.parse(await Bun.file("package.json").json());
|
||||
const host = z
|
||||
.object({ peerDependencies: z.object({ effect: z.string() }) })
|
||||
.parse(await Bun.file("node_modules/@opencode/client/package.json").json());
|
||||
expect(own.dependencies["effect"]).toBe(host.peerDependencies.effect);
|
||||
});
|
||||
|
||||
test("packed package has independent native plugins and quota-only TUI discovery", async () => {
|
||||
const directory = await mkdtemp(join(tmpdir(), "plugin-package-"));
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user