mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-04 13:22:11 +00:00
* 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
14 lines
589 B
TypeScript
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}",`);
|
|
});
|
|
});
|