























@@ -509,14 +509,21 @@ describe("scripts/test-extension.mjs", () => {
509509await expect(runPromise).resolves.toBe(0);
510510expect(runGroup).toHaveBeenCalledTimes(3);
511511const firstRunGroupParams = requireFirstMockArg<RunGroupParams>(runGroup);
512-expect(firstRunGroupParams).toMatchObject({
512+expect(firstRunGroupParams).toEqual({
513513args: ["--reporter=dot"],
514514config: "heavy",
515+env: {
516+OPENCLAW_EXTENSION_BATCH_PARALLEL: "2",
517+OPENCLAW_VITEST_FS_MODULE_CACHE_PATH: path.join(
518+process.cwd(),
519+"node_modules",
520+".experimental-vitest-cache",
521+"extension-batch",
522+"0-heavy",
523+),
524+},
515525targets: ["extensions/two"],
516526});
517-expect(firstRunGroupParams.env.OPENCLAW_VITEST_FS_MODULE_CACHE_PATH).toContain(
518-path.join("node_modules", ".experimental-vitest-cache", "extension-batch", "0-heavy"),
519-);
520527});
521528522529it("keeps extension batch parallelism bounded by group count", () => {
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。