Perror
Bun

property

test.default.TestContext.error

readonly error: null | Error

The failure reason for the test/case; wrapped and available via context.error.cause.