mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-28 04:28:58 +02:00
* fix(ci): expose package deps to telegram QA harness * fix(ci): link QA package runtime deps * fix(agents): guard replay metadata in empty retries * fix(ci): keep plugin update smoke migration-stable
21 lines
997 B
TypeScript
21 lines
997 B
TypeScript
import { readFileSync } from "node:fs";
|
|
import { describe, expect, it } from "vitest";
|
|
|
|
const PLUGIN_UPDATE_DOCKER_SCRIPT = "scripts/e2e/plugin-update-unchanged-docker.sh";
|
|
|
|
describe("plugin update unchanged Docker E2E", () => {
|
|
it("seeds current plugin install ledger state before checking config stability", () => {
|
|
const script = readFileSync(PLUGIN_UPDATE_DOCKER_SCRIPT, "utf8");
|
|
const configSeedStart = script.indexOf('cat > \\"\\$HOME/.openclaw/openclaw.json\\"');
|
|
const configSeedEnd = script.indexOf('cat > \\"\\$HOME/.openclaw/plugins/installs.json\\"');
|
|
const configSeed = script.slice(configSeedStart, configSeedEnd);
|
|
|
|
expect(configSeedStart).toBeGreaterThanOrEqual(0);
|
|
expect(configSeedEnd).toBeGreaterThan(configSeedStart);
|
|
expect(configSeed).toContain('\\"plugins\\": {}');
|
|
expect(configSeed).not.toContain('\\"installs\\"');
|
|
expect(script).toContain('\\"installRecords\\": {');
|
|
expect(script).toContain('\\"lossless-claw\\": {');
|
|
});
|
|
});
|