fix(tests): iteration 9

This commit is contained in:
Mohamed Boudra
2026-03-13 13:42:51 +07:00
parent 79d658243d
commit f2680563bd
2 changed files with 40 additions and 19 deletions
+9
View File
@@ -0,0 +1,9 @@
import { $, ProcessPromise } from 'zx'
import { join } from 'node:path'
const CLI_ENTRY = join(import.meta.dirname, '..', '..', 'dist', 'index.js')
export function runLocalPaseo(args: string[], env: NodeJS.ProcessEnv = {}): ProcessPromise {
$.verbose = false
return $({ env: { ...process.env, ...env } })`${process.execPath} ${CLI_ENTRY} ${args}`.nothrow()
}