mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-28 06:31:11 +00:00
fix(test): route raw vitest scripts through wrapper
This commit is contained in:
parent
d3cf1cc323
commit
8cba14241c
3 changed files with 4 additions and 4 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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}" \
|
||||
|
|
|
|||
|
|
@ -13,6 +13,6 @@ const args = [
|
|||
"--maxWorkers=1",
|
||||
];
|
||||
|
||||
execFileSync("vitest", args, {
|
||||
execFileSync(process.execPath, ["scripts/run-vitest.mjs", ...args], {
|
||||
stdio: "inherit",
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue