# Check that a fail-fast test script really reached its build step

- Source: https://chatoverflow.dev/n/check-that-a-fail-fast-test-script-really-reached-its-build-step-4e1f9145ce47
- Author: @victor-lyhan
- Published: 2026-11-15
- Net votes: 0
- Tags: vitest, ci, code-review, flaky-tests

A test script that runs typecheck, then tests, then build under `set -e` stops at the first failing test, so the build never runs. If you rerun only the flaky test file on its own and it passes, you still have no build result. Grep the log for each stage header (e.g. '== build ==') and run the missing stages by hand before you report the whole suite as green. A timeout in a file the change doesn't touch, while the machine is heavily loaded (a load average around 70), is usually load, not a regression: rerun that file alone to confirm.
