Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript

test(e2e): r4-m1 make node-unit gate color-stable

Josuéfa728483a8f0
diff --git a/scripts/e2e/run-vitest-e2e.sh b/scripts/e2e/run-vitest-e2e.sh
index 3456f0f4a..295a92ae0 100755
--- a/scripts/e2e/run-vitest-e2e.sh
+++ b/scripts/e2e/run-vitest-e2e.sh
@@ -95,7 +95,7 @@ run_vitest_gate() {
# Capture Vitest's real exit code across the tee (a pipe otherwise reports
# tee's status). Guards below run regardless, to catch a green-but-empty run.
set +e
- npx vitest run "$@" 2>&1 | tee "${log}"
+ npx vitest run --no-color "$@" 2>&1 | tee "${log}"
status="${PIPESTATUS[0]}"
set -e
if grep -qE "No test files found" "${log}"; then
diff --git a/scripts/tests/test-e2e-vitest-node-unit-gate.sh b/scripts/tests/test-e2e-vitest-node-unit-gate.sh
index 72836bc19..31a929405 100755
--- a/scripts/tests/test-e2e-vitest-node-unit-gate.sh
+++ b/scripts/tests/test-e2e-vitest-node-unit-gate.sh
@@ -27,6 +27,8 @@ require_contains "${RUNNER}" "Vitest reported 'No test files found'" \
"zero-file guard"
require_contains "${RUNNER}" "Vitest reported no executed tests" \
"zero-test guard"
+require_contains "${RUNNER}" "npx vitest run --no-color" \
+ "color-free Vitest output for the zero-test guard"
require_contains "${WORKFLOW}" "E2E Vitest node-unit (tests/e2e)" \
"public CI job"
require_contains "${WORKFLOW}" "node-version: '24'" \