Pattempt
Bun

property

test.default.SuiteContext.attempt

readonly attempt: number

The attempt number of the suite. This value is zero-based, so the first attempt is 0, the second attempt is 1, and so on. This property is useful in conjunction with the --test-rerun-failures option to determine the attempt number of the current run.