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 <noreply@anthropic.com>
This commit is contained in:
7
.qoder/settings.local.json
Executable file
7
.qoder/settings.local.json
Executable file
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"permissions": {
|
||||||
|
"allow": [
|
||||||
|
"WebFetch(*)"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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 } {
|
function runTest(label: string, testPath: string): { pass: boolean; detail: string } {
|
||||||
const bun = findBun()
|
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 {
|
export function e2eCommand(): void {
|
||||||
|
|||||||
Reference in New Issue
Block a user