Files
openclaw/test/scripts/live-docker-stage.test.ts
Peter Steinberger 8604da8e16 Reapply "refactor: move runtime state to SQLite"
This reverts commit 694ca50e97.
2026-05-27 13:27:43 +01:00

23 lines
824 B
TypeScript

import { readFileSync } from "node:fs";
import path from "node:path";
import { fileURLToPath } from "node:url";
import { describe, expect, it } from "vitest";
const repoRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "../..");
const stageScriptPath = path.join(repoRoot, "scripts/lib/live-docker-stage.sh");
describe("live Docker state staging", () => {
it("keeps repo-local generated artifacts out of the source copy", () => {
const script = readFileSync(stageScriptPath, "utf8");
expect(script).toContain("--exclude=.artifacts");
});
it("keeps host workspace artifacts out of the container state copy", () => {
const script = readFileSync(stageScriptPath, "utf8");
expect(script).toContain("--exclude=workspace");
expect(script).toContain("--exclude=sandboxes");
});
});