fix(agents): honor verbose defaults and trim process setup

This commit is contained in:
Peter Steinberger
2026-04-06 15:24:55 +01:00
parent cd5b1653f6
commit 3599ab2e56
5 changed files with 30 additions and 2 deletions

View File

@@ -1,4 +1,5 @@
import fs from "node:fs";
import os from "node:os";
import path from "node:path";
import { describe, expect, it } from "vitest";
import { createAcpVitestConfig } from "../vitest.acp.config.ts";
@@ -203,6 +204,14 @@ describe("scoped vitest configs", () => {
}
});
it("keeps the process lane off the openclaw runtime setup", () => {
expect(defaultProcessConfig.test?.setupFiles).toEqual(["test/setup.ts"]);
expect(defaultPluginSdkConfig.test?.setupFiles).toEqual([
"test/setup.ts",
"test/setup-openclaw-runtime.ts",
]);
});
it("defaults channel tests to threads with the non-isolated runner", () => {
expect(defaultChannelsConfig.test?.isolate).toBe(false);
expect(defaultChannelsConfig.test?.pool).toBe("threads");