openclaw/test/scripts/qa-plugin-install-sources.test.ts
Vincent Koc 06b5f0b2ff
test(qa): cover CLI onboarding and plugin install sources (#118882)
* test(qa): cover CLI onboarding and plugin sources

* test(qa): assert npm file plugin source

* test(qa): redact onboarding password assertion

* test(qa): retain onboarding evidence log
2026-08-04 06:54:42 +08:00

14 lines
589 B
TypeScript

import { readFileSync } from "node:fs";
import { describe, expect, it } from "vitest";
const FILE_SPEC_MARKER = "Testing install from npm spec (file:)...";
describe("QA plugin install source coverage", () => {
it("requires the executable npm file-spec assertion marker", () => {
const qaWrapper = readFileSync("scripts/e2e/qa-plugin-install-sources.mjs", "utf8");
const pluginSweep = readFileSync("scripts/e2e/lib/plugins/sweep.sh", "utf8");
expect(pluginSweep).toContain(`echo "${FILE_SPEC_MARKER}"`);
expect(qaWrapper).toContain(`"${FILE_SPEC_MARKER}",`);
});
});