openclaw/scripts/test-projects.mts
Peter Steinberger 0be787a80c
fix(test): preserve boolean options in focused test runs (#133449)
* fix(test): preserve native arguments through focused runs

Preserve native scalar validation, boolean operands, config spellings, and
original argument occurrences through direct and delegated test runs.
Keep the documented strict direct-config and delegated opt-in policies.

Classify native execution before preparing runtime, browser, or compiled
worker prerequisites. Keep pre-install planning dependency-free by moving
launch helpers into their existing owners, without lifecycle changes.

Fixes #133432.

* fix(test): preserve native runner cleanup boundaries

Keep shared native argument admission free of process-management imports.
Move unchanged exit and failure-trailer helpers into the existing Vitest
process owner so UI configuration no longer imports Windows process code.

Preserve the actual child exit signal until strict cleanup selects its
existing policy, then normalize the final return to a shell status. Numeric
143 remains a numeric exit and still rejects lingering descendants. Owner
cancellation, non-strict close-based release, positive group/pipe/claim
verification, and all finalizer timing constants remain unchanged.

The real-process regression failed before this owner repair and passes
after it, with descendant SIGTERM receipt, drained output, released claims,
and strict numeric-exit controls. The full candidate received fresh
independent Codex review at the configured P0 threshold.

Refs #133449, #133432.
2026-09-02 17:44:08 -07:00

5 lines
240 B
TypeScript

// Importing this public entrypoint also starts the serial/max/import aliases.
import { runVitestCli } from "./lib/vitest-process.mts";
import { runTestProjects } from "./test-projects-run.mts";
void runVitestCli("test", runTestProjects);