From d3cf1cc32379950bf2d7ef6d572a2a0ea78ae953 Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Sun, 12 Apr 2026 04:50:57 +0100 Subject: [PATCH] fix(test): route force runner through project sharding --- scripts/test-force.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/test-force.ts b/scripts/test-force.ts index fe491e06783..e9d50342a95 100755 --- a/scripts/test-force.ts +++ b/scripts/test-force.ts @@ -28,7 +28,7 @@ function runTests() { const isolatedLock = process.env.OPENCLAW_GATEWAY_LOCK ?? path.join(os.tmpdir(), `openclaw-gateway.lock.test.${Date.now()}`); - const result = spawnSync("pnpm", ["exec", "vitest", "run", "--config", "vitest.config.ts"], { + const result = spawnSync(process.execPath, ["scripts/test-projects.mjs"], { stdio: "inherit", env: { ...process.env, @@ -36,7 +36,7 @@ function runTests() { }, }); if (result.error) { - console.error(`pnpm test failed to start: ${String(result.error)}`); + console.error(`test runner failed to start: ${String(result.error)}`); process.exit(1); } process.exit(result.status ?? 1);