Skip to content

Allow different patterns for the t.try() callback argument #273

Open
@novemberborn

Description

@novemberborn

avajs/ava#1947 landed a new t.try() assertion. It's experimental, one of the reasons for which is that it advocates some new usages of AVA that this plugin rejects.

t.try() takes a callback, which receives another execution object:

const attempt = await t.try(t => {
  t.pass()
})

attempt.commit()

Not all linting setups allow you to shadow variables like this. I'm proposing we also allow tt, and t1 through t9. Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions