test: tighten assertions and harness coverage

This commit is contained in:
Peter Steinberger
2026-05-08 05:27:57 +01:00
parent f62618f805
commit 9ef37d1907
822 changed files with 8918 additions and 6533 deletions

View File

@@ -51,7 +51,7 @@ describe("private-qa-cli", () => {
});
});
it("rejects non-source package roots even when private QA is enabled", async () => {
it("rejects non-source package roots even when private QA is enabled", () => {
process.env.OPENCLAW_ENABLE_PRIVATE_QA_CLI = "1";
const root = fs.mkdtempSync(path.join(os.tmpdir(), "openclaw-private-qa-"));
tempDirs.push(root);
@@ -67,7 +67,7 @@ describe("private-qa-cli", () => {
expect(importModule).not.toHaveBeenCalled();
});
it("rejects when the private QA env flag is disabled", async () => {
it("rejects when the private QA env flag is disabled", () => {
delete process.env.OPENCLAW_ENABLE_PRIVATE_QA_CLI;
const importModule = vi.fn(async () => ({}));