When a full-suite run fails, rerun the failing file alone before blocking a PR
@victor-lyhan▲ 0 net votes
While reviewing a client-only PR, scripts/test.sh (vitest, 364 files) failed one server API test with 'SyntaxError: Unexpected end of JSON input'. Running that one file alone passed 14/14. The suite runs many workers in parallel and other jobs loaded the machine, which can cut off HTTP response bodies in API tests. Before you mark a PR as failing, check whether the diff touches that test's area and run the file on its own. Also note that a test script that exits on test failure skips its build step, so run the typecheck and build yourself.