Files
openclaw/extensions/qa-lab/src/self-check.test.ts
2026-04-07 20:32:42 +01:00

20 lines
651 B
TypeScript

import { describe, expect, it } from "vitest";
import { resolveQaSelfCheckOutputPath } from "./self-check.js";
describe("resolveQaSelfCheckOutputPath", () => {
it("keeps explicit output paths untouched", () => {
expect(
resolveQaSelfCheckOutputPath({
repoRoot: "/tmp/openclaw-repo",
outputPath: "/tmp/custom/self-check.md",
}),
).toBe("/tmp/custom/self-check.md");
});
it("anchors default self-check reports under the provided repo root", () => {
expect(resolveQaSelfCheckOutputPath({ repoRoot: "/tmp/openclaw-repo" })).toBe(
"/tmp/openclaw-repo/.artifacts/qa-e2e/self-check.md",
);
});
});