mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 11:30:43 +00:00
test: tighten extension batch runner assertion
This commit is contained in:
@@ -509,14 +509,21 @@ describe("scripts/test-extension.mjs", () => {
|
||||
await expect(runPromise).resolves.toBe(0);
|
||||
expect(runGroup).toHaveBeenCalledTimes(3);
|
||||
const firstRunGroupParams = requireFirstMockArg<RunGroupParams>(runGroup);
|
||||
expect(firstRunGroupParams).toMatchObject({
|
||||
expect(firstRunGroupParams).toEqual({
|
||||
args: ["--reporter=dot"],
|
||||
config: "heavy",
|
||||
env: {
|
||||
OPENCLAW_EXTENSION_BATCH_PARALLEL: "2",
|
||||
OPENCLAW_VITEST_FS_MODULE_CACHE_PATH: path.join(
|
||||
process.cwd(),
|
||||
"node_modules",
|
||||
".experimental-vitest-cache",
|
||||
"extension-batch",
|
||||
"0-heavy",
|
||||
),
|
||||
},
|
||||
targets: ["extensions/two"],
|
||||
});
|
||||
expect(firstRunGroupParams.env.OPENCLAW_VITEST_FS_MODULE_CACHE_PATH).toContain(
|
||||
path.join("node_modules", ".experimental-vitest-cache", "extension-batch", "0-heavy"),
|
||||
);
|
||||
});
|
||||
|
||||
it("keeps extension batch parallelism bounded by group count", () => {
|
||||
|
||||
Reference in New Issue
Block a user