mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-12 21:53:00 -06:00
06b5f0b2ff
* 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
530 B
TypeScript
14 lines
530 B
TypeScript
import { readFileSync } from "node:fs";
|
|
import { describe, expect, it } from "vitest";
|
|
|
|
describe("QA CLI onboarding evidence", () => {
|
|
it("retains the bounded redacted child log", () => {
|
|
const source = readFileSync("scripts/e2e/qa-cli-onboarding.mjs", "utf8");
|
|
|
|
expect(source).toContain("writer.appendLog(chunk)");
|
|
expect(source).toContain("const logArtifact = await writer.writeLog()");
|
|
expect(source).toContain("artifactPaths: [logArtifact]");
|
|
expect(source).not.toContain("artifactPaths: []");
|
|
});
|
|
});
|