From 66c2e2a79bd1f8caf534fda9955da4e13cd44bcf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E6=A9=98?= Date: Thu, 4 Jun 2026 11:57:32 +0000 Subject: [PATCH] fix: use node dist/cli.js instead of npx tsx in thread-step-count tests npx tsx hangs in CI Docker (30s+ timeout). node dist/cli.js runs in <2s. --- packages/cli/src/__tests__/thread-step-count.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/cli/src/__tests__/thread-step-count.test.ts b/packages/cli/src/__tests__/thread-step-count.test.ts index e9ae603..44fb978 100644 --- a/packages/cli/src/__tests__/thread-step-count.test.ts +++ b/packages/cli/src/__tests__/thread-step-count.test.ts @@ -3,11 +3,11 @@ import { dirname, join } from "node:path"; import { fileURLToPath } from "node:url"; import { describe, expect, test } from "vitest"; -const CLI_PATH = join(dirname(fileURLToPath(import.meta.url)), "..", "cli.js"); +const CLI_PATH = join(dirname(fileURLToPath(import.meta.url)), "..", "..", "dist", "cli.js"); function runCli(args: string[]): { stdout: string; stderr: string; exitCode: number } { try { - const stdout = execFileSync("npx", ["tsx", CLI_PATH, ...args], { + const stdout = execFileSync("node", [CLI_PATH, ...args], { encoding: "utf8", env: { ...process.env, UWF_HOME: "/tmp/uwf-test-nonexistent" }, stdio: ["ignore", "pipe", "pipe"],