Skip to main content

Re-run tests multiple times with the Bun test runner

The --rerun-each flag runs every test multiple times. Use it to find flaky or non-deterministic tests.

# re-run each test 10 times
bun test --rerun-each 10

See bun test.

Translation © 2026 fanyi.dev · Original © 2026 the Bun project (LICENSE.md names no copyright holder) (MIT)