ava icon indicating copy to clipboard operation
ava copied to clipboard

Officially expose assertion error properties on `t.try()` results

Open novemberborn opened this issue 6 years ago • 0 comments

#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.

novemberborn avatar Sep 15 '19 17:09 novemberborn