Bun Bail early with the Bun test runner

Bail early with the Bun test runner

jarle Updated

File contents

Bail early with the Bun test runner

Use the --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.

bun test --bail

To bail after a certain threshold of failures, optionally specify a number after the flag.

# bail after 10 failures
bun test --bail=10

See Docs > Test runner for complete documentation of bun test.

jarle/bun-skills/tree/main/skills/bun-guides-test-bail commit 2c4b875c87

Frequently asked questions

npx skillmds@latest add jarle/bun-bail-early-with-the-bun-test-runner