--bail
flag to bail on a test run after a single failure. This is useful for aborting as soon as possible in a continuous integration environment.
terminal
To bail after a certain threshold of failures, optionally specify a number after the flag.
terminal
See Docs > Test runner for complete documentation of
bun test
.