Jest Bail — Stop After the First Failing Test You may configure the bail option to a boolean value or a number. Using a boolean for bail will either stop or not stop after the first failed test. In contrast, you can use a number to be specific about the number of tests before stopping the test run.