ava
ava copied to clipboard
Officially expose assertion error properties on `t.try()` results
#1947 landed a new t.try() assertion. We haven't yet figured out what assertion error details we want to expose.
For reference:
const attempt = await t.try(tt => {
tt.is(true, false)
})
const [error] = attempt.errors
// What should we define on this `error` object?
See: https://github.com/avajs/ava/blob/67e4deac2857503e5fac7d38da2d23014eb29724/lib/assert.js#L36
Some of these properties are internal, others are outdated. So let's hash out which ones we're comfortable exposing and supporting.