AgentSkillsCN

Bun Re-run tests multiple times with the Bun test runner

使用 Bun 测试运行器多次重新运行测试

SKILL.md
--- frontmatter
name: Bun Re-run tests multiple times with the Bun test runner
description: Re-run tests multiple times with the Bun test runner

Re-run tests multiple times with the Bun test runner

Use the --rerun-each flag to re-run every test multiple times with the Bun test runner. This is useful for finding flaky or non-deterministic tests.

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

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