test(deepseek-plugin): reproduce recall and activation regressions

This commit is contained in:
kartik-mem0
2026-09-11 16:11:53 +05:30
parent c7ee362aff
commit 9d60fd9f4e
2 changed files with 127 additions and 0 deletions
@@ -0,0 +1,14 @@
import { readFileSync, existsSync } from "node:fs";
import { describe, expect, it } from "vitest";
describe("installable Harness bundle", () => {
it("ships a native activation patch and builds before packing", () => {
const root = new URL("../", import.meta.url);
const manifest = JSON.parse(readFileSync(new URL("package.json", root), "utf8"));
expect(manifest.scripts.prepack).toBe("pnpm build");
expect(manifest.dsh.bundle.patch).toBe("./cordis.patch.yml");
expect(manifest.files).toContain("cordis.patch.yml");
expect(existsSync(new URL(manifest.dsh.bundle.patch, root))).toBe(true);
expect(readFileSync(new URL(manifest.dsh.bundle.patch, root), "utf8")).toContain("@mem0/deepseek-plugin");
});
});