mirror of
https://github.com/moltbot/moltbot.git
synced 2026-04-24 23:21:30 +00:00
fix: use pnpm exec for scripted vitest runs
This commit is contained in:
committed by
Peter Steinberger
parent
e1143fb95f
commit
9c4ea016d9
@@ -56,7 +56,7 @@ run_linux_ci_mirror() {
|
||||
run_step pnpm lint:ui:no-raw-window-open
|
||||
run_protocol_ci_mirror
|
||||
run_step pnpm canvas:a2ui:bundle
|
||||
run_step pnpm vitest run --config vitest.extensions.config.ts --maxWorkers=1
|
||||
run_step pnpm exec vitest run --config vitest.extensions.config.ts --maxWorkers=1
|
||||
run_step env CI=true pnpm exec vitest run --config vitest.unit.config.ts --maxWorkers=1
|
||||
|
||||
log_step "OPENCLAW_VITEST_MAX_WORKERS=${OPENCLAW_VITEST_MAX_WORKERS:-1} NODE_OPTIONS=${NODE_OPTIONS:---max-old-space-size=6144} pnpm test"
|
||||
|
||||
@@ -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", ["vitest", "run"], {
|
||||
const result = spawnSync("pnpm", ["exec", "vitest", "run"], {
|
||||
stdio: "inherit",
|
||||
env: {
|
||||
...process.env,
|
||||
|
||||
@@ -43,7 +43,16 @@ export function runVitestJsonReport({
|
||||
if (!(reportPath && fs.existsSync(resolvedReportPath))) {
|
||||
const run = spawnSync(
|
||||
"pnpm",
|
||||
["vitest", "run", "--config", config, "--reporter=json", "--outputFile", resolvedReportPath],
|
||||
[
|
||||
"exec",
|
||||
"vitest",
|
||||
"run",
|
||||
"--config",
|
||||
config,
|
||||
"--reporter=json",
|
||||
"--outputFile",
|
||||
resolvedReportPath,
|
||||
],
|
||||
{
|
||||
stdio: "inherit",
|
||||
env: process.env,
|
||||
|
||||
Reference in New Issue
Block a user