Skip to content

Incorrect detection of properties of t.context as AVA functions #223

Closed
@GMartigny

Description

@GMartigny

Issuehunt badges

Hi,
When a property of t.context match an existing AVA function (say end), the eslint plugin fire an error for incorrect use of this function.
Consider:

test.beforeEach((t) => {
    t.context = new Vector(1, 2);
});
test("constructor", (t) => {
    t.is(t.context.start, 1);
    t.is(t.context.end, 2);		// <= `t.end()` should only be used inside of `test.cb()`  ava/no-invalid-end
});

I have search the source and it appear that only end and skip raised the issue.

gmartigny earned $40.00 by resolving this issue!

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