From df36c438291919b7bcca18ae8a349a9c1681324a Mon Sep 17 00:00:00 2001 From: AirCoding Date: Thu, 4 Jun 2026 17:56:35 +0800 Subject: [PATCH] fix(e2e): split test paths for bun test args array e2e.ts runTest was passing all paths as single string argument, causing bun to treat it as one malformed path. Split on spaces to properly pass multiple test paths. Co-Authored-By: Claude Sonnet 4.6 --- .qoder/settings.local.json | 7 +++++++ packages/cli/src/commands/e2e.ts | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100755 .qoder/settings.local.json diff --git a/.qoder/settings.local.json b/.qoder/settings.local.json new file mode 100755 index 0000000..e25e79b --- /dev/null +++ b/.qoder/settings.local.json @@ -0,0 +1,7 @@ +{ + "permissions": { + "allow": [ + "WebFetch(*)" + ] + } +} diff --git a/packages/cli/src/commands/e2e.ts b/packages/cli/src/commands/e2e.ts index f8294eb..ecfd6ce 100755 --- a/packages/cli/src/commands/e2e.ts +++ b/packages/cli/src/commands/e2e.ts @@ -52,7 +52,8 @@ function runCmd(label: string, cmd: string, args: string[], cwd?: string, timeou */ function runTest(label: string, testPath: string): { pass: boolean; detail: string } { const bun = findBun() - return runCmd(label, bun, ['test', testPath]) + const paths = testPath.split(' ').filter(p => p.length > 0) + return runCmd(label, bun, ['test', ...paths]) } export function e2eCommand(): void {