使用 Bun 测试运行器多次重新运行测试--rerun-each 标志会多次运行每个测试。使用它来查找不稳定或非确定性的测试。 terminal复制# 每个测试重新运行 10 次 bun test --rerun-each 10 请参阅 bun test。