mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 18:00:43 +00:00
23 lines
659 B
TypeScript
23 lines
659 B
TypeScript
import fs from "node:fs";
|
|
import { describe, expect, it } from "vitest";
|
|
|
|
type CodexPackageManifest = {
|
|
dependencies?: Record<string, string>;
|
|
openclaw?: {
|
|
bundle?: {
|
|
stageRuntimeDependencies?: boolean;
|
|
};
|
|
};
|
|
};
|
|
|
|
describe("codex package manifest", () => {
|
|
it("opts into staging bundled runtime dependencies", () => {
|
|
const packageJson = JSON.parse(
|
|
fs.readFileSync(new URL("../package.json", import.meta.url), "utf8"),
|
|
) as CodexPackageManifest;
|
|
|
|
expect(packageJson.dependencies?.["@mariozechner/pi-coding-agent"]).toBeDefined();
|
|
expect(packageJson.openclaw?.bundle?.stageRuntimeDependencies).toBe(true);
|
|
});
|
|
});
|