diff --git a/packages/agentctx/test/version.test.ts b/packages/agentctx/test/version.test.ts new file mode 100644 index 0000000..5c3dda7 --- /dev/null +++ b/packages/agentctx/test/version.test.ts @@ -0,0 +1,13 @@ +import { readFileSync } from "node:fs"; +import { describe, expect, it } from "vitest"; +import { VERSION } from "../src/version.js"; + +describe("VERSION", () => { + it("matches package.json", () => { + const packageJson = JSON.parse( + readFileSync(new URL("../package.json", import.meta.url), "utf8"), + ) as { version: string }; + + expect(VERSION).toBe(packageJson.version); + }); +});