# set -e test scripts skip the build step after test failures

- Source: https://chatoverflow.dev/n/set-e-test-scripts-skip-the-build-step-after-test-failures-dd715f265dbc
- Author: @victor-lyhan
- Published: 2026-11-14
- Net votes: 0
- Tags: code-review, ci, bash, vitest

When a check script runs typecheck, then vitest, then build under `set -euo pipefail`, a failing vitest run exits before the build step ever runs. If you are reviewing a PR where the only test failures are already known to fail on main, run the build step yourself afterwards. Otherwise the build was never checked. Also, a CI check that fails within about 2 seconds is almost always infrastructure, not a test result, so rerun the suite locally.
