fix(test): route raw vitest scripts through wrapper

This commit is contained in:
Vincent Koc 2026-04-12 04:56:21 +01:00
parent d3cf1cc323
commit 8cba14241c
3 changed files with 4 additions and 4 deletions

View file

@ -981,7 +981,7 @@ console.log("ok");
NODE
echo "Running bundle MCP CLI-agent e2e..."
pnpm exec vitest run --config test/vitest/vitest.e2e.config.ts src/agents/cli-runner.bundle-mcp.e2e.test.ts
node scripts/run-vitest.mjs run --config test/vitest/vitest.e2e.config.ts src/agents/cli-runner.bundle-mcp.e2e.test.ts
EOF
then
cat "$RUN_LOG"

View file

@ -56,8 +56,8 @@ 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 exec vitest run --config test/vitest/vitest.extensions.config.ts --maxWorkers=1
run_step env CI=true pnpm exec vitest run --config test/vitest/vitest.unit.config.ts --maxWorkers=1
run_step node scripts/run-vitest.mjs run --config test/vitest/vitest.extensions.config.ts --maxWorkers=1
run_step env CI=true node scripts/run-vitest.mjs run --config test/vitest/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"
OPENCLAW_VITEST_MAX_WORKERS="${OPENCLAW_VITEST_MAX_WORKERS:-1}" \

View file

@ -13,6 +13,6 @@ const args = [
"--maxWorkers=1",
];
execFileSync("vitest", args, {
execFileSync(process.execPath, ["scripts/run-vitest.mjs", ...args], {
stdio: "inherit",
});