Pretry
Bun

property

test.TestOptions.retry

retry?: number

Sets the number of times to retry the test if it fails.