mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-29 17:43:37 +00:00
23 lines
785 B
TypeScript
23 lines
785 B
TypeScript
// Codex tests cover manifest plugin behavior.
|
|
import fs from "node:fs";
|
|
import { describe, expect, it } from "vitest";
|
|
import { MANAGED_CODEX_APP_SERVER_PACKAGE_VERSION } from "./app-server/version.js";
|
|
|
|
type CodexPackageManifest = {
|
|
dependencies?: Record<string, string>;
|
|
devDependencies?: Record<string, string>;
|
|
};
|
|
|
|
describe("codex package manifest", () => {
|
|
it("keeps runtime dependencies in the package manifest", () => {
|
|
const packageJson = JSON.parse(
|
|
fs.readFileSync(new URL("../package.json", import.meta.url), "utf8"),
|
|
) as CodexPackageManifest;
|
|
|
|
expect(packageJson.devDependencies).toHaveProperty("@openclaw/plugin-sdk");
|
|
expect(packageJson.dependencies?.["@openai/codex"]).toBe(
|
|
MANAGED_CODEX_APP_SERVER_PACKAGE_VERSION,
|
|
);
|
|
});
|
|
});
|